.github/workflows/npm-publish.yml
raw| 1 | # This workflow publishes a package to NPM |
| 2 | |
| 3 | name: Publish package |
| 4 | |
| 5 | on: |
| 6 | release: |
| 7 | types: [published] |
| 8 | workflow_dispatch: |
| 9 | |
| 10 | permissions: |
| 11 | contents: read |
| 12 | id-token: write # For OIDC Trusted Publishing |
| 13 | |
| 14 | jobs: |
| 15 | publish-npm: |
| 16 | runs-on: ubuntu-latest |
| 17 | steps: |
| 18 | - uses: actions/checkout@v6 |
| 19 | - uses: actions/setup-node@v6 |
| 20 | with: |
| 21 | registry-url: https://registry.npmjs.org |
| 22 | node-version: 24 |
| 23 | cache: 'npm' |
| 24 | - run: npm ci |
| 25 | - run: npm publish --access public |