Skip to content

Commit 259d4e7

Browse files
mattgloryclaude
andcommitted
Add Dependabot config to block major version upgrades
Prevents Next.js 14→15/16, React 18→19, and esbuild major/minor upgrade PRs that require migration work. Allows patch and security updates through automatically. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent 4b508b2 commit 259d4e7

1 file changed

Lines changed: 28 additions & 0 deletions

File tree

.github/dependabot.yml

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
version: 2
2+
updates:
3+
# Root package (contracts/tests)
4+
- package-ecosystem: "npm"
5+
directory: "/"
6+
schedule:
7+
interval: "weekly"
8+
open-pull-requests-limit: 5
9+
ignore:
10+
# Only allow patch updates for esbuild (major/minor can break builds)
11+
- dependency-name: "esbuild"
12+
update-types: ["version-update:semver-major", "version-update:semver-minor"]
13+
14+
# Frontend (web/)
15+
- package-ecosystem: "npm"
16+
directory: "/web"
17+
schedule:
18+
interval: "weekly"
19+
open-pull-requests-limit: 5
20+
ignore:
21+
# Block major version upgrades for Next.js (14→15 requires migration)
22+
- dependency-name: "next"
23+
update-types: ["version-update:semver-major"]
24+
# Block major React upgrades (tied to Next.js version)
25+
- dependency-name: "react"
26+
update-types: ["version-update:semver-major"]
27+
- dependency-name: "react-dom"
28+
update-types: ["version-update:semver-major"]

0 commit comments

Comments
 (0)