Skip to content

Commit 69a2c7e

Browse files
committed
ci: Add Dependabot dependency updates
1 parent a82c570 commit 69a2c7e

File tree

2 files changed

+48
-2
lines changed

2 files changed

+48
-2
lines changed

.github/dependabot.yml

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
version: 2
2+
updates:
3+
- package-ecosystem: npm
4+
directory: '/'
5+
schedule:
6+
interval: 'weekly'
7+
day: 'thursday'
8+
target-branch: 'master'
9+
open-pull-requests-limit: 3
10+
versioning-strategy: increase
11+
commit-message:
12+
prefix: 'chore'
13+
include: 'scope'
14+
groups:
15+
major-updates:
16+
update-types: ['major']
17+
minor-updates:
18+
update-types: ['minor']
19+
patch-updates:
20+
update-types: ['patch']
21+
22+
- package-ecosystem: 'github-actions'
23+
directory: '/'
24+
schedule:
25+
interval: 'monthly'
26+
target-branch: 'master'
27+
open-pull-requests-limit: 3
28+
commit-message:
29+
prefix: 'chore'
30+
include: 'scope'

.github/workflows/node.js.yml

Lines changed: 18 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@ on:
99
permissions:
1010
contents: read
1111
pull-requests: write
12-
security-events: write
1312

1413
jobs:
1514
build:
@@ -18,7 +17,7 @@ jobs:
1817
matrix:
1918
node-version: [22.x]
2019
steps:
21-
- uses: actions/checkout@v4
20+
- uses: actions/checkout@v5
2221
- name: Use Node.js ${{ matrix.node-version }}
2322
uses: actions/setup-node@v4
2423
with:
@@ -27,3 +26,20 @@ jobs:
2726
- run: npm install
2827
- run: npm run lint-check
2928
- run: npm run test
29+
30+
dependabot-automerge:
31+
needs: [build]
32+
if: >
33+
github.event_name == 'pull_request' &&
34+
github.event.pull_request.user.login == 'dependabot[bot]'
35+
runs-on: ubuntu-latest
36+
permissions:
37+
contents: read
38+
pull-requests: write
39+
steps:
40+
- name: Automerge Dependabot PRs if all checks have passed
41+
shell: bash
42+
env:
43+
GH_TOKEN: ${{ github.token }}
44+
run: |
45+
gh pr merge --squash --auto ${{ github.event.pull_request.number }}

0 commit comments

Comments
 (0)