Commit c564d66
ci: publish to NPM through trusted publishing (#399)
The release job had no NPM credentials at all since NPM_TOKEN was dropped
in 3690bd1, so `changeset publish` failed with ENEEDAUTH for every package
once the devEngines blocker was out of the way. The changesets action
logged it plainly: "No NPM_TOKEN or OIDC available - assuming npm is
already authenticated".
Grant the job an OIDC token so the action takes its trusted publishing
path instead, which needs no long-lived token. Declaring permissions
narrows them from the permissive default, so the contents and
pull-requests scopes the action already used are spelled out as well.
Requires a trusted publisher configured on npmjs.com for each published
package, pointing at this repository and this workflow file.
Claude-Session: https://claude.ai/code/session_01P2UZcjV4P98WFjzfRfLQvx
Co-authored-by: Claude <noreply@anthropic.com>1 parent cc72cb9 commit c564d66
1 file changed
Lines changed: 7 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
22 | 22 | | |
23 | 23 | | |
24 | 24 | | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
25 | 32 | | |
26 | 33 | | |
27 | 34 | | |
| |||
0 commit comments