Skip to content

Commit 1cd263e

Browse files
mschmickingclaude
andcommitted
ci: add dependabot for npm and github actions
Weekly updates for the npm dependency and the pinned action versions. Titles are configured as 'chore(deps): ...' rather than Dependabot's default 'Bump x from 1 to 2'. The default carries no conventional-commit type, so pr-title.yml would fail every Dependabot pull request and make it unmergeable. Minor and patch bumps are grouped into one pull request per ecosystem to keep the noise down. Majors are left ungrouped: node-addon-api is the binding layer, and a major there can break compilation on one platform and not another, so it deserves its own run of the full matrix. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
1 parent 52f6cbb commit 1cd263e

1 file changed

Lines changed: 61 additions & 0 deletions

File tree

.github/dependabot.yml

Lines changed: 61 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,61 @@
1+
version: 2
2+
3+
# NOTE: this file only takes effect once it is on the default branch (master).
4+
#
5+
# Titles matter here. pr-title.yml requires Conventional Commits, and Dependabot's
6+
# default title ("Bump x from 1 to 2") has no type, so every Dependabot pull request
7+
# would fail that check and become unmergeable. The commit-message settings below
8+
# produce "chore(deps): bump x from 1 to 2" instead — 'chore' is an allowed type and
9+
# 'deps' an allowed scope in pr-title.yml. Keep the two files in step.
10+
#
11+
# The vendored Lua and LuaFileSystem sources under vendor/ are deliberately not
12+
# covered: Dependabot has no ecosystem for copied-in C source, and Lua 5.1.5 is
13+
# frozen upstream. Updating those stays a manual, deliberate act.
14+
15+
updates:
16+
- package-ecosystem: npm
17+
directory: "/"
18+
schedule:
19+
interval: weekly
20+
day: monday
21+
time: "06:00"
22+
timezone: Europe/Berlin
23+
open-pull-requests-limit: 5
24+
commit-message:
25+
prefix: chore
26+
# Adds the (deps) / (deps-dev) scope, giving "chore(deps): ...".
27+
include: scope
28+
groups:
29+
# One pull request a week for the routine bumps, so the noise stays low on a
30+
# package with a single runtime dependency. Majors are deliberately excluded:
31+
# node-addon-api is the C++ binding layer, and a major there can break
32+
# compilation on some platforms and not others, which deserves its own pull
33+
# request and its own CI matrix run to look at.
34+
npm-minor-and-patch:
35+
patterns:
36+
- "*"
37+
update-types:
38+
- minor
39+
- patch
40+
41+
- package-ecosystem: github-actions
42+
directory: "/"
43+
schedule:
44+
interval: weekly
45+
day: monday
46+
time: "06:00"
47+
timezone: Europe/Berlin
48+
open-pull-requests-limit: 5
49+
commit-message:
50+
prefix: chore
51+
include: scope
52+
groups:
53+
# Action bumps are almost always safe and arrive in batches; grouping them
54+
# keeps five separate workflow files from producing five separate pull
55+
# requests for the same version bump.
56+
actions-minor-and-patch:
57+
patterns:
58+
- "*"
59+
update-types:
60+
- minor
61+
- patch

0 commit comments

Comments
 (0)