Commit b53bd8b
committed
ci(release): upgrade npm to 11.x + drop NODE_AUTH_TOKEN for Trusted Publishing
Trusted Publishing (OIDC) is configured on npmjs for opencode-sdlc-wizard,
but the workflow was still passing NODE_AUTH_TOKEN from a (now deleted /
broken) NPM_TOKEN secret. npm CLI sees the env var first and uses
token-auth path, which 404s.
Two fixes:
1. node 22 ships npm 10.x; Trusted Publishing OIDC auth requires
npm >= 11.5.1. Added a global npm@latest install step.
2. Removed the NODE_AUTH_TOKEN env on the publish step so the CLI
falls through to OIDC. The trusted publisher config on the npm
side (BaseInfinity/opencode-sdlc-wizard + release.yml) authorizes
this workflow's OIDC token for publish without any long-lived
secret.
Workflow needs to be re-dispatched against tag v0.8.9 to pick up
this fix (release.yml runs from main on workflow_dispatch but
checks out the tagged ref for the package contents).1 parent d9a8ec0 commit b53bd8b
1 file changed
Lines changed: 6 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
51 | 51 | | |
52 | 52 | | |
53 | 53 | | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
54 | 60 | | |
55 | 61 | | |
56 | 62 | | |
57 | 63 | | |
58 | 64 | | |
59 | | - | |
60 | | - | |
61 | 65 | | |
62 | 66 | | |
63 | 67 | | |
| |||
0 commit comments