Skip to content

Commit 30d8a8f

Browse files
updated workflow
1 parent 94d9905 commit 30d8a8f

1 file changed

Lines changed: 7 additions & 3 deletions

File tree

.github/workflows/release.yml

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,10 @@ on:
88
jobs:
99
build-test-release:
1010
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
1115

1216
steps:
1317
- name: Checkout
@@ -31,6 +35,6 @@ jobs:
3135
run: npm run build
3236

3337
- name: Publish to npm
34-
env:
35-
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
36-
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

Comments
 (0)