ci(release): upgrade npm to 11+ for trusted-publisher OIDC auth#121
Merged
stackbilt-admin merged 1 commit intomainfrom Apr 18, 2026
Merged
ci(release): upgrade npm to 11+ for trusted-publisher OIDC auth#121stackbilt-admin merged 1 commit intomainfrom
stackbilt-admin merged 1 commit intomainfrom
Conversation
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: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
#120 removed the token plumbing expecting npm's
--provenanceflag to drive OIDC-based publish auth. It doesn't —--provenanceonly 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 on the v0.12.0 retry:
ENEEDAUTH— the CLI had no token (correct end state after #120) but didn't know how to use OIDC for auth.Change
Add
npm install -g npm@latestas a step before dependency install. npm 11.12.1 as of 2026-04-18 has first-class trusted-publisher OIDC auth.Test plan
gh workflow run release.yml -f tag=v0.12.0— idempotent, nothing published yet for 0.12.0.@stackbilt/*packages publish via OIDC at 0.12.0.NPM_TOKENrepo secret.History
🤖 Generated with Claude Code