Use npm trusted publishing

This commit is contained in:
Tobi Lütke 2026-05-20 00:19:46 +00:00
parent a8a314b802
commit 96ab7787f8
No known key found for this signature in database
2 changed files with 6 additions and 3 deletions

View File

@ -32,13 +32,12 @@ jobs:
- uses: actions/setup-node@v4 - uses: actions/setup-node@v4
with: with:
node-version: 22 node-version: 24
registry-url: https://registry.npmjs.org registry-url: https://registry.npmjs.org
package-manager-cache: false
- run: npm run build - run: npm run build
- run: npm publish --provenance --access public - run: npm publish --provenance --access public
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
- name: Extract release notes - name: Extract release notes
id: notes id: notes

View File

@ -2,6 +2,10 @@
## [Unreleased] ## [Unreleased]
### Changes
- Release: publish from GitHub Actions via npm Trusted Publishing/OIDC instead of a long-lived `NPM_TOKEN` secret.
## [2.5.0] - 2026-05-19 ## [2.5.0] - 2026-05-19
### Changes ### Changes