Skip to content

Pin npm to 10.x for OIDC trusted publishing#98

Merged
pcholakov merged 1 commit into
mainfrom
drop-corepack
May 6, 2026
Merged

Pin npm to 10.x for OIDC trusted publishing#98
pcholakov merged 1 commit into
mainfrom
drop-corepack

Conversation

@pcholakov
Copy link
Copy Markdown
Collaborator

The corepack step is still needed for unrelated reasons, but npm@latest (currently 11.14) breaks OIDC trusted publishing — npm 11 returns ENEEDAUTH instead of falling through to OIDC when _authToken resolves to empty.

byoc publishes successfully via OIDC using its bundled Node 24 npm (~10.x, judging by the deprecated always-auth warnings in its logs). Pinning to npm 10 here matches that working setup.

Test plan

  • Merge and verify next snapshot publish succeeds without NPM_TOKEN

@pcholakov pcholakov merged commit 6ef933d into main May 6, 2026
2 checks passed
@github-actions github-actions Bot locked and limited conversation to collaborators May 6, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant