Skip to content

fix: remove broken env var from .npmrc for Dependabot compatibility#46

Merged
wizzomafizzo merged 1 commit into
mainfrom
fix/npmrc-dependabot
Apr 5, 2026
Merged

fix: remove broken env var from .npmrc for Dependabot compatibility#46
wizzomafizzo merged 1 commit into
mainfrom
fix/npmrc-dependabot

Conversation

@wizzomafizzo

Copy link
Copy Markdown
Member

Summary

  • Removes //npm.pkg.github.com/:_authToken=${NPM_TOKEN} from project .npmrc
  • Dependabot cannot substitute ${NPM_TOKEN} env vars (docs), causing pnpm to misroute all package lookups to npm.pkg.github.com instead of npmjs.org
  • Keeps the @capawesome-team scope line so only that scope routes to GitHub Packages
  • Auth is already handled elsewhere:

Context

Dependabot npm version updates were failing with "can't resolve your JavaScript dependency files" — specifically @types/react-dom, @types/node, @types/react were being fetched from npm.pkg.github.com instead of the public registry.

Test plan

  • CI build passes (auth comes from workflow step, not project .npmrc)
  • Dependabot creates npm version update PRs after merge

Dependabot cannot substitute ${NPM_TOKEN} environment variables in
.npmrc files. The unresolvable token causes pnpm to misroute all
package lookups to npm.pkg.github.com instead of npmjs.org.

The auth token line is not needed in the project .npmrc because:
- CI workflows already write auth to ~/.npmrc independently
- Local dev uses the global ~/.npmrc for auth
- Dependabot gets auth from the registries block in dependabot.yml

Keep only the @capawesome-team scope line which correctly routes
just that scope to GitHub Packages.
@wizzomafizzo
wizzomafizzo merged commit 8aa1cad into main Apr 5, 2026
1 check passed
@wizzomafizzo
wizzomafizzo deleted the fix/npmrc-dependabot branch April 5, 2026 06:02
@codecov

codecov Bot commented Apr 5, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

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.

1 participant