Skip to content

ci(publish): upgrade npm CLI before publish (Trusted Publishing needs >=11.5.1) - #7

Merged
akshat009 merged 1 commit into
mainfrom
ci/fix-npm-cli-version-for-oidc
Aug 19, 2026
Merged

ci(publish): upgrade npm CLI before publish (Trusted Publishing needs >=11.5.1)#7
akshat009 merged 1 commit into
mainfrom
ci/fix-npm-cli-version-for-oidc

Conversation

@akshat009

Copy link
Copy Markdown
Owner

v1.0.4 got a 404 (fully unauthenticated request) instead of the earlier 403 -- OIDC exchange wasn't happening at all. Root cause: Node 22's bundled npm CLI is ~10.x, which predates Trusted Publishing support. Adds npm install -g npm@latest after Setup Node.

… >=11.5.1)

v1.0.4 publish attempt got a 404 (anonymous/unauthenticated request) instead
of the earlier 403 -- OIDC auth wasn't even attempted. Node 22's bundled npm
is ~10.x, which predates Trusted Publishing support entirely. Added an
explicit `npm install -g npm@latest` step after Setup Node so the CLI
actually supports the OIDC exchange, regardless of what Node bundles.
@akshat009
akshat009 merged commit 518ea18 into main Aug 19, 2026
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant