Skip to content

fix(ci): install npm 11+ for OIDC trusted publishing support#108

Merged
kadel merged 1 commit intoredhat-developer:mainfrom
kadel:fix/npm-trusted-publishing-npm-version
Apr 28, 2026
Merged

fix(ci): install npm 11+ for OIDC trusted publishing support#108
kadel merged 1 commit intoredhat-developer:mainfrom
kadel:fix/npm-trusted-publishing-npm-version

Conversation

@kadel
Copy link
Copy Markdown
Member

@kadel kadel commented Apr 28, 2026

Summary

  • Install npm@latest (11.5.1+) before publishing, since Node 22 ships
    with npm 10.x which does not support OIDC authentication.

Why

npm trusted publishing requires npm CLI 11.5.1+ for OIDC token exchange.
Node 22.22.0 bundles npm 10.9.x, which has no OIDC support, causing
ENEEDAUTH errors.

See failed run: https://github.com/redhat-developer/rhdh-cli/actions/runs/25050189102/job/73375641931

Reference: https://docs.npmjs.com/trusted-publishers/

Test plan

  • Trigger publish.yaml via workflow_dispatch and verify successful
    publish to npm with OIDC authentication.

Node 22 ships with npm 10.x which does not support OIDC
authentication. Trusted publishing requires npm 11.5.1+.
@sonarqubecloud
Copy link
Copy Markdown

@davidfestal
Copy link
Copy Markdown
Member

/lgtm

@openshift-ci openshift-ci Bot added the lgtm label Apr 28, 2026
@kadel kadel merged commit b24506c into redhat-developer:main Apr 28, 2026
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants