Upgrade version #42
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Publish to npm | |
| on: | |
| push: | |
| tags: | |
| - "*.*.*" | |
| workflow_dispatch: | |
| jobs: | |
| publish: | |
| name: Build and Publish to npmjs.com | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v4 | |
| - name: Initialize LiaScript submodule | |
| run: git submodule update --init --recursive LiaScript | |
| - name: Setup Node.js | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: "24" | |
| registry-url: "https://registry.npmjs.org" | |
| - name: Install dependencies | |
| run: npm ci | |
| - name: Set ELM_HOME | |
| run: echo "ELM_HOME=${GITHUB_WORKSPACE}/.elm" >> $GITHUB_ENV | |
| - name: Fetch additional LiaScript branches | |
| run: | | |
| cd LiaScript | |
| git fetch origin feat/fullPage:refs/heads/feat/fullPage feat/capacitor8:refs/heads/feat/capacitor8 | |
| - name: Build LiaScript prebuild and apply Elm patches | |
| run: | | |
| cd LiaScript | |
| npm install | |
| npm run prebuild | |
| make -C patches/elm-patch ELM_HOME=${ELM_HOME} || echo "Patches already applied or skipped" | |
| rm -rf elm-stuff .parcel-cache | |
| - name: Build and prepare for publish | |
| run: npm run build:all | |
| - name: Publish to npmjs.com | |
| run: npm publish --access public --tag latest | |
| env: | |
| NODE_AUTH_TOKEN: ${{ secrets.NPM_PUBLISH_KEY }} |