Skip to content

Commit 5cb562b

Browse files
chore: switch npm publish to trusted publishers via OIDC (#36)
Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent d7a4a2f commit 5cb562b

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

.github/workflows/publish-node-sdk.yml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,10 @@ name: Publish Node SDK to npm
33
on:
44
workflow_dispatch:
55

6+
permissions:
7+
contents: write
8+
id-token: write
9+
610
jobs:
711
publish:
812
runs-on: ubuntu-latest
@@ -27,9 +31,7 @@ jobs:
2731
run: pnpm build
2832

2933
- name: Publish to npm
30-
run: pnpm publish --access public
31-
env:
32-
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
34+
run: pnpm publish --access public --provenance
3335

3436
- name: Get version from package.json
3537
id: package-version

0 commit comments

Comments
 (0)