Skip to content

fix(ci): add registry-url for npm OIDC trusted publishing#756

Merged
kovtcharov-amd merged 1 commit intomainfrom
kalin/fix-npm-registry-url
Apr 11, 2026
Merged

fix(ci): add registry-url for npm OIDC trusted publishing#756
kovtcharov-amd merged 1 commit intomainfrom
kalin/fix-npm-registry-url

Conversation

@kovtcharov
Copy link
Copy Markdown
Collaborator

Summary

  • Fixes ENEEDAUTH in npm publish: https://github.com/amd/gaia/actions/runs/24280576961
  • Root cause: setup-node without registry-url never creates the .npmrc that maps NODE_AUTH_TOKEN to the npm registry. npm's OIDC trusted publishing needs this to authenticate.
  • Note: The old publish-npm-ui.yml was never actually run (zero successful runs in history) — v0.17.0 and v0.17.1 were published outside CI. So the old workflow's lack of registry-url was an untested bug too.
  • Fix: Add registry-url: 'https://registry.npmjs.org' to setup-node.

Test plan

  • Merge, move tag, verify npm publish authenticates and succeeds

🤖 Generated with Claude Code

@github-actions github-actions Bot added the devops DevOps/infrastructure changes label 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) <noreply@anthropic.com>
@kovtcharov kovtcharov force-pushed the kalin/fix-npm-registry-url branch 2 times, most recently from 4453620 to bb3eb7f Compare April 11, 2026 10:44
@kovtcharov-amd kovtcharov-amd added this pull request to the merge queue Apr 11, 2026
Merged via the queue into main with commit 60bfaae Apr 11, 2026
18 of 20 checks passed
@kovtcharov-amd kovtcharov-amd deleted the kalin/fix-npm-registry-url branch April 11, 2026 10:45
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