Repository navigation
1.2.0 #3
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Publish to npm | |
| on: | |
| release: | |
| types: [published] | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| permissions: | |
| contents: read | |
| id-token: write | |
| steps: | |
| - uses: actions/checkout@v5 | |
| - uses: actions/setup-node@v4 | |
| with: | |
| node-version: '20.x' | |
| registry-url: 'https://registry.npmjs.org' | |
| # Trusted publishing (OIDC) needs npm >= 11.5.1; Node 20 ships npm 10. | |
| - run: npm install -g npm@latest | |
| - run: npm ci | |
| # No NODE_AUTH_TOKEN: auth comes from the OIDC token (id-token: write) | |
| # via the trusted publisher configured for this package on npmjs.com. | |
| - run: npm publish --provenance --access public |