Commit e21442b
Migrate npm publishing to trusted publishers (#496)
Switch from manual NPM_TOKEN authentication to OpenID Connect (OIDC)
trusted publishing. This provides better security by:
- Eliminating the need to manage long-lived NPM tokens as secrets
- Using short-lived OIDC tokens generated by GitHub Actions
- Adding provenance attestations to published packages
Changes:
- Add id-token: write and contents: read permissions
- Use --provenance flag for npm publish
- Remove NODE_AUTH_TOKEN secret usage
Requires configuration on npmjs.com to add GitHub Actions as a
trusted publisher before this workflow will work.
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-authored-by: Claude <[email protected]>1 parent 73efccc commit e21442b
1 file changed
+4
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
13 | 16 | | |
14 | 17 | | |
15 | 18 | | |
| |||
19 | 22 | | |
20 | 23 | | |
21 | 24 | | |
22 | | - | |
23 | | - | |
24 | | - | |
| 25 | + | |
0 commit comments