Skip to content

fix: upgrade npm to 11.5.1+ for OIDC trusted publishing - #683

Merged
kovtcharov merged 1 commit into
mainfrom
fix/npm-oidc-version
Mar 31, 2026
Merged

kovtcharov merged 1 commit into
mainfrom
fix/npm-oidc-version

Conversation

@kovtcharov

Copy link
Copy Markdown
Contributor

Summary

  • Node 22 ships with npm 10.9.4, which does not support OIDC trusted publishing
  • The npm publish workflow fails with ENEEDAUTH because npm 10.x can't authenticate via OIDC
  • Adds an explicit npm install -g npm@latest step to get npm 11.5.1+ which supports OIDC

Context

Trusted publishing was configured correctly on npmjs.com (amd/gaia → publish-npm-ui.yml → npm environment), and the workflow had id-token: write + --provenance. The only missing piece was the npm CLI version.

From the failed run logs:

npm: 10.9.4   ← too old, needs 11.5.1+
npm error code ENEEDAUTH

Test plan

  • Merge this PR
  • Re-tag v0.17.1 (or create v0.17.2) to trigger the publish workflow
  • Verify the publish job prints npm 11.5.1+ and @amd-gaia/agent-ui publishes successfully

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.
@github-actions github-actions Bot added the devops DevOps/infrastructure changes label Mar 31, 2026
@kovtcharov
kovtcharov enabled auto-merge March 31, 2026 19:08
@kovtcharov kovtcharov self-assigned this Mar 31, 2026
@kovtcharov
kovtcharov added this pull request to the merge queue Mar 31, 2026
Merged via the queue into main with commit 4fe0441 Mar 31, 2026
24 checks passed
@kovtcharov
kovtcharov deleted the fix/npm-oidc-version branch March 31, 2026 19:10
@itomek itomek mentioned this pull request Apr 10, 2026
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]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

devops DevOps/infrastructure changes

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants