Skip to content

Commit ef66cd2

Browse files
stackbilt-adminKurt Overmierclaude
authored
ci(release): upgrade npm to 11+ for trusted-publisher OIDC auth (#121)
The prior fix (#120) removed token plumbing expecting npm's `--provenance` flag to drive OIDC-based publish auth. It doesn't — `--provenance` only signs attestations via OIDC. Publish auth via OIDC for trusted publishers requires **npm 11.5.1+**, which is newer than what setup-node bundles with Node 20 (currently ~10.x). Result: v0.12.0 publish returned ENEEDAUTH — the CLI had no token (correct end state) but didn't know how to use OIDC for auth. Fix: install npm@latest globally before the publish step. 11.12.1 as of 2026-04-18 has first-class trusted-publisher OIDC auth. Co-authored-by: Kurt Overmier <kurt@stackbilt.dev> Co-authored-by: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
1 parent 9e156c2 commit ef66cd2

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

.github/workflows/release.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -115,6 +115,11 @@ jobs:
115115
node-version: '20'
116116
cache: 'pnpm'
117117

118+
# npm 11.5.1+ required for trusted-publisher OIDC auth on publish.
119+
# The version bundled with Node 20 on setup-node is ~10.x.
120+
- name: Upgrade npm for trusted-publisher support
121+
run: npm install -g npm@latest
122+
118123
- name: Install dependencies
119124
run: pnpm install --frozen-lockfile
120125

0 commit comments

Comments
 (0)