We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 94d9905 commit 30d8a8fCopy full SHA for 30d8a8f
1 file changed
.github/workflows/release.yml
@@ -8,6 +8,10 @@ on:
8
jobs:
9
build-test-release:
10
runs-on: ubuntu-latest
11
+ permissions:
12
+ contents: read
13
+ id-token: write # CRITICAL: This enables OIDC authentication
14
+ packages: write # Optional, if you also publish to GitHub Packages
15
16
steps:
17
- name: Checkout
@@ -31,6 +35,6 @@ jobs:
31
35
run: npm run build
32
36
33
37
- name: Publish to npm
34
- env:
- NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
- run: npm publish
38
+ # Removed the 'env: NODE_AUTH_TOKEN' line entirely.
39
+ # OIDC handles authentication automatically now.
40
+ run: npm publish --provenance # Added --provenance as a 2025 best practice
0 commit comments