Use npm trusted publishing
This commit is contained in:
parent
a8a314b802
commit
96ab7787f8
5
.github/workflows/publish.yml
vendored
5
.github/workflows/publish.yml
vendored
@ -32,13 +32,12 @@ jobs:
|
||||
|
||||
- uses: actions/setup-node@v4
|
||||
with:
|
||||
node-version: 22
|
||||
node-version: 24
|
||||
registry-url: https://registry.npmjs.org
|
||||
package-manager-cache: false
|
||||
|
||||
- run: npm run build
|
||||
- run: npm publish --provenance --access public
|
||||
env:
|
||||
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
|
||||
|
||||
- name: Extract release notes
|
||||
id: notes
|
||||
|
||||
@ -2,6 +2,10 @@
|
||||
|
||||
## [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
|
||||
|
||||
### Changes
|
||||
|
||||
Loading…
Reference in New Issue
Block a user