Repository navigation
fix: upgrade npm to 11.5.1+ for OIDC trusted publishing - #683
Merged
Merged
Conversation
Node 22 ships with npm 10.9.4 which does not support OIDC trusted publishing. The publish workflow fails with ENEEDAUTH because npm 10.x doesn't know how to authenticate via OIDC. Adding an explicit npm upgrade step before publish to get npm 11.5.1+ which supports it.
kovtcharov
enabled auto-merge
March 31, 2026 19:08
kovtcharov-amd
approved these changes
Mar 31, 2026
Merged
github-merge-queue Bot
pushed a commit
that referenced
this pull request
Apr 10, 2026
Release notes for v0.17.2. See [docs/releases/v0.17.2.mdx](https://github.com/amd/gaia/blob/v0.17.2-release/docs/releases/v0.17.2.mdx) for the full body. **Headline features:** - One-click desktop installers for Windows, macOS, and Linux (#731 + #743) - Customizable agents and Builder Agent (#720) - MCP tool execution visibility in Agent Activity panel (#717) **Security:** RAG cache integrity verification (#722, closes #447) **Bug fixes:** drag-and-drop upload in any browser (#729), Linux install fixes (#743) **Release & CI:** unified publish workflow (#715), Claude review on fork PRs (#685), npm OIDC fix (#683), webui package.json sync (#682) Full changelog: v0.17.1...v0.17.2 --------- Co-authored-by: Tomasz Iniewicz <[email protected]>
kovtcharov
added a commit
that referenced
this pull request
Apr 11, 2026
npm OIDC trusted publishing requires npm 11.5.1+ (#683). Node 22 ships with npm 10.x which can't authenticate via OIDC, and `npm install -g npm@latest` on Node 22 runners corrupts npm's own dependencies. Fix: use Node 24 which ships with npm 11+ natively. No npm upgrade step needed, no registry-url needed — npm 11 handles OIDC auth directly with `id-token: write` + `environment: npm` + `--provenance`. Co-Authored-By: Claude Opus 4.6 (1M context) <[email protected]>
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
ENEEDAUTHbecause npm 10.x can't authenticate via OIDCnpm install -g npm@lateststep to get npm 11.5.1+ which supports OIDCContext
Trusted publishing was configured correctly on npmjs.com (
amd/gaia→publish-npm-ui.yml→npmenvironment), and the workflow hadid-token: write+--provenance. The only missing piece was the npm CLI version.From the failed run logs:
Test plan
v0.17.1(or createv0.17.2) to trigger the publish workflow@amd-gaia/agent-uipublishes successfully