# This workflow will run tests using node and then publish a package to NPM when a release is created name: Node.js Package on: release: types: [created] workflow_dispatch: permissions: id-token: write contents: read jobs: publish-npm: runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 - uses: actions/setup-node@v4 with: node-version: 24 registry-url: https://registry.npmjs.org/ - name: Install dependencies run: npm ci - name: Build package run: npm run build - name: Run tests run: npm run test --if-present - name: Publish to NPM run: npm publish --provenance