Skip to content

Commit 2d65351

Browse files
authored
ci(release): switch npm publish to provenance-based auth (#209)
Add explicit permissions for OIDC token and contents access. Remove NODE_AUTH_TOKEN in favor of npm provenance publishing, which provides stronger supply chain security guarantees. Signed-off-by: Kevin Cui <bh@bugs.cc>
1 parent 6a91a94 commit 2d65351

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

.github/workflows/release.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,10 @@ on:
44
tags:
55
- "v*.*.*"
66

7+
permissions:
8+
id-token: write
9+
contents: write
10+
711
jobs:
812
release:
913
runs-on: ubuntu-latest
@@ -47,5 +51,3 @@ jobs:
4751
- name: Publish
4852
run: |
4953
pnpm publish --access public --no-git-checks
50-
env:
51-
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

0 commit comments

Comments
 (0)