Skip to content

Commit 659a79d

Browse files
authored
ci(deps): consolidate dependabot npm entries for root (#3014)
Dependabot does not support two `package-ecosystem: npm` entries that share the same directory + target-branch. The split introduced in #2968 was silently broken: no `npm-toolchain-deps` PR was ever opened, and toolchain packages still leaked into `npm-prod-deps` with a `chore` prefix instead of the intended `fix`. Collapse to a single npm entry for `/` so the configured prefixes (`fix` for prod, `chore` for dev) actually take effect; PR titles can be overridden manually for toolchain-only bumps that shouldn't trigger a release.
1 parent 02a2880 commit 659a79d

1 file changed

Lines changed: 5 additions & 38 deletions

File tree

.github/dependabot.yml

Lines changed: 5 additions & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -17,10 +17,12 @@ updates:
1717
patterns:
1818
- "*"
1919

20-
# Runtime (shipped) prod deps + dev deps for the monorepo root.
20+
# All deps for the monorepo root (prod + dev, including toolchain).
2121
# Prod bumps are committed as `fix(deps):` so the release pipeline's conventional-commit
22-
# analyzer picks them up and bumps the packages that consume them (dev bumps stay as chore).
23-
# Toolchain packages (@nx/*, @rollup/rollup-*, @swc/core-*) are excluded here and handled below.
22+
# analyzer picks them up and bumps the packages that consume them; dev bumps stay as `chore`.
23+
# Override the PR title manually when a bump shouldn't trigger a release (e.g. toolchain-only).
24+
# Note: Dependabot does not allow two npm entries for the same directory + target-branch,
25+
# so per-group commit prefixes are not possible — keep this as a single entry.
2426
- package-ecosystem: "npm"
2527
cooldown:
2628
default-days: 5
@@ -38,10 +40,6 @@ updates:
3840
prefix: "fix"
3941
prefix-development: "chore"
4042
include: "scope"
41-
ignore:
42-
- dependency-name: "@nx/*"
43-
- dependency-name: "@rollup/rollup-*"
44-
- dependency-name: "@swc/core-*"
4543
groups:
4644
npm-dev-deps:
4745
patterns:
@@ -63,37 +61,6 @@ updates:
6361
- "major"
6462
dependency-type: "production"
6563

66-
# Build toolchain packages — Nx (JS tooling + native runners) and Rollup/SWC native
67-
# binaries. None of these ship in published bundles, so bumps are committed as
68-
# `chore(deps):` and intentionally skipped by the release analyzer.
69-
- package-ecosystem: "npm"
70-
cooldown:
71-
default-days: 5
72-
directory: "/"
73-
schedule:
74-
interval: "cron"
75-
# every wednesday at 00:01 UTC
76-
cronjob: "1 0 * * 3"
77-
timezone: "UTC"
78-
target-branch: "develop"
79-
labels:
80-
- "dependencies"
81-
- "toolchain"
82-
open-pull-requests-limit: 5
83-
commit-message:
84-
prefix: "chore"
85-
include: "scope"
86-
allow:
87-
- dependency-name: "@nx/*"
88-
- dependency-name: "@rollup/rollup-*"
89-
- dependency-name: "@swc/core-*"
90-
groups:
91-
npm-toolchain-deps:
92-
patterns:
93-
- "@nx/*"
94-
- "@rollup/rollup-*"
95-
- "@swc/core-*"
96-
9764
# All sample applications managed together (excluding gatsby)
9865
- package-ecosystem: "npm"
9966
cooldown:

0 commit comments

Comments
 (0)