ci: use npm trusted publishing (OIDC) instead of token
This commit is contained in:
parent
73985a2aaa
commit
53bf2ebf10
5
.github/workflows/publish.yml
vendored
5
.github/workflows/publish.yml
vendored
@ -10,6 +10,7 @@ jobs:
|
||||
|
||||
permissions:
|
||||
contents: write
|
||||
id-token: write
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
@ -29,9 +30,7 @@ jobs:
|
||||
node-version: 22
|
||||
registry-url: https://registry.npmjs.org
|
||||
|
||||
- run: npm publish
|
||||
env:
|
||||
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
|
||||
- run: npm publish --provenance --access public
|
||||
|
||||
- name: Create GitHub Release
|
||||
env:
|
||||
|
||||
Loading…
Reference in New Issue
Block a user