Skip to content

fix(ci): remove registry-url to fix OIDC trusted publishing#107

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

fix(ci): remove registry-url to fix OIDC trusted publishing#107
kadel merged 1 commit intoredhat-developer:mainfrom
kadel:fix/npm-trusted-publishing-oidc

Conversation

@kadel
Copy link
Copy Markdown
Member

@kadel kadel commented Apr 28, 2026

Summary

  • Remove registry-url from actions/setup-node to fix npm trusted publishing.

Why

The actions/setup-node action with registry-url creates an .npmrc file
containing a token-based auth entry (_authToken=${NODE_AUTH_TOKEN}). When
this is present, the npm CLI uses it for authentication instead of falling
back to OIDC, resulting in a misleading E404 Not Found error.

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

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

Test plan

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

actions/setup-node with registry-url creates an .npmrc with a
token-based auth entry, which prevents the npm CLI from falling
back to OIDC authentication, causing a misleading 404 error.
@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 1e96dfe 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