Release node-litesvm v0.3.2 (#211) #10
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: release NodeJS | |
| on: | |
| push: | |
| tags: | |
| - "node-v[0-9]+.[0-9]+.[0-9]+" | |
| jobs: | |
| publish: | |
| name: Publish | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v5 | |
| - name: Setup node | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: 22 | |
| check-latest: true | |
| cache: yarn | |
| cache-dependency-path: crates/node-litesvm/yarn.lock | |
| - name: Install dependencies | |
| run: cd crates/node-litesvm/ && corepack enable && yarn install | |
| - name: Create npm dirs | |
| run: cd crates/node-litesvm/ && yarn napi create-npm-dirs | |
| - name: Download all artifacts | |
| uses: dawidd6/action-download-artifact@v11 | |
| with: | |
| workflow: node-build.yml | |
| path: crates/node-litesvm/artifacts | |
| - name: Move artifacts | |
| run: cd crates/node-litesvm/ && yarn artifacts | |
| - name: Compile Typescript | |
| run: cd crates/node-litesvm/ && yarn build:js | |
| - name: List packages | |
| run: cd crates/node-litesvm/ && ls -R ./npm | |
| - name: Publish | |
| run: | | |
| cd crates/node-litesvm/ | |
| echo "//registry.npmjs.org/:_authToken=$NPM_TOKEN" >> ~/.npmrc | |
| npm publish --access public | |
| env: | |
| NPM_TOKEN: ${{ secrets.NPM_TOKEN }} |