Skip to content

Node.js Package

Node.js Package #141

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
fetch-tags: true
- uses: actions/setup-node@v4
with:
registry-url: 'https://registry.npmjs.org'
- run: ./build.sh
- run: ./purge.sh || true
- run: npm publish --access public
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}