Skip to content

Node.js Package

Node.js Package #136

Workflow file for this run

name: Node.js Package
on:
create
jobs:
build:
runs-on: ubuntu-latest
if: ${{ startsWith(github.ref, 'refs/tags/v') }}
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: actions/setup-node@v4
with:
registry-url: 'https://registry.npmjs.org'
- run: ./build.sh
- run: PREVIOUS_COMMIT=${{ github.event.before }} CURRENT_COMMIT=${{ github.sha }} ./purge.sh || true
- run: npm publish --access public
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}