Commit 89a7f6d
publish_npm: use Trusted Publishing (OIDC) for auth, not NPM_TOKEN (#700)
Trusted Publishing is now configured on npmjs.org for theengs-decoder
(repo: theengs/decoder, workflow: publish_npm.yml). The v2.3.0 publish
still returned 404 because:
- Node 20 ships with npm 10.x, which only uses OIDC for provenance
attestation. Authentication still relied on NODE_AUTH_TOKEN, and the
NPM_TOKEN secret is no longer valid, so PUT was rejected.
- Full OIDC auth for npm publish requires npm 11.5.1+.
Upgrade npm to latest before publishing, and drop the NODE_AUTH_TOKEN
env from the publish steps so the CLI uses the Trusted Publisher flow
end-to-end. The NPM_TOKEN secret can be removed from the repo once
this lands.
Co-authored-by: Florian <1technophile@users.noreply.github.com>
Co-authored-by: Claude Opus 4.7 (1M context) <noreply@anthropic.com>1 parent 7726c16 commit 89a7f6d
1 file changed
Lines changed: 3 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
28 | 28 | | |
29 | 29 | | |
30 | 30 | | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
31 | 34 | | |
32 | 35 | | |
33 | 36 | | |
| |||
70 | 73 | | |
71 | 74 | | |
72 | 75 | | |
73 | | - | |
74 | | - | |
75 | 76 | | |
76 | 77 | | |
77 | 78 | | |
78 | 79 | | |
79 | | - | |
80 | | - | |
81 | 80 | | |
0 commit comments