Commit a1fa56d
ci: publish to npm via trusted publishing (OIDC)
Switch the manual npm publish workflow from a long-lived NPM_TOKEN secret
to npm Trusted Publishing:
- Remove NODE_AUTH_TOKEN from the publish step so npm authenticates via the
GitHub Actions OIDC token (id-token: write is already granted) against the
trusted publisher configured on each package at npmjs.com.
- Upgrade the runner's npm to latest before publishing; Trusted Publishing
needs npm >= 11.5.1 and Node 20 ships npm 10.x.
- Update the header comment to document the new auth model.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>1 parent ee94763 commit a1fa56d
1 file changed
Lines changed: 9 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
11 | | - | |
12 | | - | |
13 | | - | |
14 | | - | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
15 | 16 | | |
16 | 17 | | |
17 | 18 | | |
| |||
56 | 57 | | |
57 | 58 | | |
58 | 59 | | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
59 | 64 | | |
60 | 65 | | |
61 | 66 | | |
62 | 67 | | |
63 | 68 | | |
64 | 69 | | |
65 | 70 | | |
66 | | - | |
67 | | - | |
68 | 71 | | |
0 commit comments