Skip to content

Commit f0fc8de

Browse files
authored
ci: enable Dependabot version updates for pnpm dependencies (#1887)
Part of #1732. Adds the npm ecosystem (used by Dependabot for pnpm projects) to `.github/dependabot.yml`, replacing the TODO left in #1771. - Weekly schedule with a 7-day cooldown, matching the GitHub Actions configuration. - Patch updates are grouped separately for production and development dependencies; minor and major updates arrive one per PR. - `@types/vscode` is ignored so that it keeps tracking the minimum supported VS Code API and is bumped together with `engines.vscode`. - Major updates of `@types/node` are ignored so that it keeps tracking the Node.js version bundled with VS Code. - Commits use the `chore:` prefix, so dependency bumps are skipped by git-cliff. The repository uses pnpm 11 with a single-document `pnpm-lock.yaml`, which Dependabot supports (dependabot/dependabot-core#14794).
1 parent f9a9eaa commit f0fc8de

1 file changed

Lines changed: 26 additions & 1 deletion

File tree

‎.github/dependabot.yml‎

Lines changed: 26 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,4 +9,29 @@ updates:
99
cooldown:
1010
default-days: 7
1111

12-
# TODO: node ecosystem config (#1732)
12+
# pnpm projects use the npm ecosystem.
13+
- package-ecosystem: npm
14+
directory: /
15+
commit-message:
16+
prefix: "chore: "
17+
schedule:
18+
interval: weekly
19+
cooldown:
20+
default-days: 7
21+
groups:
22+
# Bundle patch updates; minor and major updates still arrive one per PR.
23+
dependencies:
24+
dependency-type: production
25+
update-types:
26+
- patch
27+
dev-dependencies:
28+
dependency-type: development
29+
update-types:
30+
- patch
31+
ignore:
32+
# Tracks the minimum supported VS Code API; update with `engines.vscode`.
33+
- dependency-name: "@types/vscode"
34+
# Tracks the Node.js version bundled with the minimum supported VS Code.
35+
- dependency-name: "@types/node"
36+
update-types:
37+
- version-update:semver-major

0 commit comments

Comments
 (0)