Skip to content

Fix CI E401 by repointing lockfile to public npmjs and forcing npm ci to rewrite private-registry hosts via --replace-registry-host=always - #834

Closed
arpit-jn wants to merge 1 commit into
mainfrom
fix/ci-npm-private-registry-e401
Closed

Fix CI E401 by repointing lockfile to public npmjs and forcing npm ci to rewrite private-registry hosts via --replace-registry-host=always#834
arpit-jn wants to merge 1 commit into
mainfrom
fix/ci-npm-private-registry-e401

Conversation

@arpit-jn

Copy link
Copy Markdown
Contributor

Changes

CI's npm ci was failing with E401 Incorrect or missing password because two core-js@3.48.0 entries in package-lock.json had resolved URLs pointing at Auth0's private Artifactory (a0us.jfrog.io), which is unauthenticated in public CI.

  • package-lock.json: repointed the two core-js resolved URLs to the public registry (registry.npmjs.org); integrity hashes unchanged (identical tarballs).
  • .github/workflows/build.yml and .github/actions/npm-publish/action.yml: added --replace-registry-host=always to npm ci (and set registry-url in build) so npm rewrites any private-registry host that leaks into the lockfile back to the public registry, preventing recurrence.

registry-url alone does not fix this — it only writes an .npmrc; npm still fetches from the lockfile's resolved host unless replace-registry-host rewrites it.

References

Checklist

… to rewrite private-registry hosts via --replace-registry-host=always
@arpit-jn
arpit-jn requested a review from a team as a code owner July 27, 2026 11:43
@frederikprijck

Copy link
Copy Markdown
Member

Let's use #835

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants