chore(dependabot): add release-age cooldown to npm updates#285
Conversation
CI installs the latest pnpm, which enforces a default 24h minimumReleaseAge supply-chain gate on the lockfile. Dependabot opens npm bumps the same day a version is published, so the resulting PRs fail CI with ERR_PNPM_MINIMUM_RELEASE_AGE_VIOLATION (e.g. lucide-react 1.18.0 in #283). Add a 3-day cooldown to the /ui and /admin npm update configs so Dependabot waits until a release has aged past the gate before opening a PR. This keeps the supply-chain protection intact while avoiding PRs that are doomed to fail. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Qodo reviews are paused for this user.Troubleshooting steps vary by plan Learn more → On a Teams plan? Using GitHub Enterprise Server, GitLab Self-Managed, or Bitbucket Data Center? |
PR Summary by QodoDependabot: add 3-day cooldown to npm updates to avoid pnpm release-age CI failures WalkthroughsDescription• Add a 3-day Dependabot cooldown for /ui npm updates to clear pnpm release-age gate. • Add the same cooldown for /admin npm updates to prevent publish-day CI failures. Diagramgraph TD
D["Dependabot (npm)"] --> C["cooldown: 3 days"] --> P["Update PR"] --> CI["CI build"] --> PN["pnpm@latest"] --> G{"minimumReleaseAge OK?"}
G -->|"Yes"| PASS["Lockfile accepted"]
G -->|"No"| FAIL["ERR_PNPM_MINIMUM_RELEASE_AGE"]
High-Level AssessmentThe following are alternative approaches to this PR: 1. Pin pnpm in CI to the repo’s pinned version
2. Configure pnpm minimumReleaseAge explicitly (project/CI)
3. Reduce Dependabot frequency (e.g., weekly) for npm ecosystems
Recommendation: The chosen cooldown is a pragmatic, low-risk fix because it preserves pnpm’s minimumReleaseAge gate while preventing PRs that cannot pass CI on publish day. If CI stability issues persist due to pnpm@latest drift, consider also pinning pnpm in CI to match the repo’s pinned version. File ChangesOther (1)
|
Why
CI installs the latest pnpm (
build.yml:npm install -g pnpm@latest), which is newer than the repo's pinnedpnpm@11.5.2and enforces a default 24hminimumReleaseAgesupply-chain gate on the lockfile. Dependabot opens npm bumps the same day a version is published, so those PRs fail CI with:(seen on #283 —
lucide-react1.17.0 → 1.18.0).What
Add a 3-day
cooldownto the/uiand/adminnpm update configs so Dependabot waits until a release has aged past the gate before opening a PR. This:Only the npm ecosystems feed
pnpm-lock.yaml, so the gate doesn't affect the github-actions/docker/gomod configs — they're left unchanged.🤖 Generated with Claude Code