Skip to content

Publish to NPM

Publish to NPM #5

Workflow file for this run

# This workflow will run build and then publish a package to GitHub Packages when a release is created
# using OIDC. See https://docs.github.com/en/actions/deployment/security-hardening-your-deployments/about-security-hardening-with-openid-connect
# and https://docs.npmjs.com/trusted-publishers for more details.
name: Publish to NPM
on:
release:
types: [created]
permissions:
id-token: write # Required for OIDC
contents: read
jobs:
publish:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: '24'
registry-url: 'https://registry.npmjs.org'
- run: npm run check
- run: npm publish --provenance --access public