Skip to content

Pin public npm registry so Dependabot can rebase npm PRs (closes #67) - #68

Merged
frankbria merged 1 commit into
mainfrom
chore/issue-67-dependabot-npm-registry
Jun 27, 2026
Merged

Pin public npm registry so Dependabot can rebase npm PRs (closes #67)#68
frankbria merged 1 commit into
mainfrom
chore/issue-67-dependabot-npm-registry

Conversation

@frankbria

Copy link
Copy Markdown
Owner

Closes #67.

Problem

@dependabot rebase/recreate failed on every frontend npm PR (#50, #52, #54, #58, #60) with:

Dependabot can't access a private package registry without explicit configuration.

…even though every dependency resolves from public npm (verified: no repo .npmrc, no registries: block, all package-lock.json resolved URLs are registry.npmjs.org, no git/file/private deps). Backend (uv) and github-actions PRs rebased fine — the gap was npm-ecosystem-specific, which is why we had to rebase the frontend PRs by hand while clearing the backlog.

Fix

Dependabot's npm updater sources the registry from a committed .npmrc (or a registries: block). This repo had neither, so the error is literally accurate — there was no explicit registry config. Added src/frontend/.npmrc pinning the public registry:

registry=https://registry.npmjs.org/

No auth token (the registry is public; tokens belong in Dependabot secrets, never the repo). Side benefit: CI/local npm installs are now deterministic about the registry.

Verification

  • npm ci in src/frontend succeeds with the committed .npmrc; npm config get registryhttps://registry.npmjs.org/; no token in the file.
  • Final confirmation is post-merge: once on main, @dependabot recreate on a stuck frontend PR should succeed instead of erroring. I'll trigger that after merge to validate.

Note

This is the minimal documented remedy. If it doesn't fully clear the error, the fallback is an org/repo-level Dependabot registries: entry — but that's heavier and shouldn't be needed for public-only npm.

Dependabot refused to rebase/recreate every frontend npm PR with 'can't
access a private package registry without explicit configuration' (#67),
even though all deps resolve from public npm and there's no .npmrc or
registries: block. Backend (uv) and github-actions PRs rebased fine — the
gap was npm-ecosystem-specific.

Dependabot's npm updater sources the registry from a committed .npmrc (or a
registries: block). This adds the minimal explicit config — the public npm
registry, no auth token (public). Also makes CI/local npm installs
deterministic about the registry.
@coderabbitai

coderabbitai Bot commented Jun 27, 2026

Copy link
Copy Markdown

Warning

Review limit reached

@frankbria, we couldn't start this review because you've reached your PR review rate limit.

More reviews will be available in 7 minutes and 2 seconds. Learn how PR review limits work.

Your organization has reached its usage spending cap. Adjust your spending cap in the billing tab.

⌛ How to resolve this issue?

After more reviews become available, a review can be triggered using the @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

To avoid repeated limits, reduce automatic review volume by pausing incremental auto-reviews earlier, using label-based review opt-in, excluding WIP or generated PR titles, or requesting reviews manually when the PR is ready. If your team needs uninterrupted high-volume reviews, an organization admin can enable usage-based credits.

🚦 How do rate limits work?

CodeRabbit enforces per-developer PR review limits for each organization. Most developers receive the normal plan review availability.

For paid Pro and Pro+ PR reviews, CodeRabbit uses adaptive limits for sustained high-volume activity. When a developer's recent PR review activity reaches the 95th percentile or higher among CodeRabbit users, additional reviews become available more gradually as earlier reviews age out of the rolling window.

Please see our Fair Usage Limits Policy for further information.

ℹ️ Review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro

Run ID: 838670cb-2c6e-4d53-83eb-e6e3faa5fec9

📥 Commits

Reviewing files that changed from the base of the PR and between 292c567 and 069aaa8.

📒 Files selected for processing (1)
  • src/frontend/.npmrc
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch chore/issue-67-dependabot-npm-registry

Comment @coderabbitai help to get the list of available commands.

@frankbria
frankbria merged commit c385fda into main Jun 27, 2026
9 checks passed
@frankbria
frankbria deleted the chore/issue-67-dependabot-npm-registry branch June 27, 2026 04:01
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.

Dependabot can't rebase npm (frontend) PRs: "can't access a private package registry"

1 participant