Skip to content

Commit d180ff6

Browse files
committed
ci: restore grouped dependency updates
1 parent 6668e98 commit d180ff6

2 files changed

Lines changed: 90 additions & 0 deletions

File tree

.github/dependabot.yml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
version: 2
2+
updates:
3+
- package-ecosystem: "github-actions"
4+
directory: "/"
5+
schedule:
6+
interval: "weekly"
7+
open-pull-requests-limit: 1
8+
groups:
9+
github-actions:
10+
patterns:
11+
- "*"

.github/workflows/dependencies.yml

Lines changed: 79 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,79 @@
1+
name: Dependency Updates
2+
3+
on:
4+
workflow_dispatch:
5+
schedule:
6+
- cron: "17 7 * * 1"
7+
8+
concurrency:
9+
group: dependency-updates
10+
cancel-in-progress: true
11+
12+
permissions:
13+
contents: write
14+
pull-requests: write
15+
16+
jobs:
17+
pnpm:
18+
name: Update pnpm Dependencies
19+
runs-on: ubuntu-latest
20+
env:
21+
HUSKY: 0
22+
23+
steps:
24+
- uses: actions/checkout@v7
25+
26+
- uses: pnpm/action-setup@v6
27+
with:
28+
version: 11.17.0
29+
30+
- uses: actions/setup-node@v7
31+
with:
32+
node-version: 24
33+
cache: pnpm
34+
35+
- name: Install
36+
run: pnpm install --frozen-lockfile
37+
38+
- name: Update Dependencies
39+
# Keep declarations aligned with the Node.js major used by CI.
40+
run: pnpm update --latest "!@types/node"
41+
42+
- name: Detect Changes
43+
id: updates
44+
shell: bash
45+
run: |
46+
if git diff --quiet -- package.json pnpm-lock.yaml; then
47+
echo "changed=false" >> "${GITHUB_OUTPUT}"
48+
else
49+
echo "changed=true" >> "${GITHUB_OUTPUT}"
50+
fi
51+
52+
- name: Verify
53+
if: steps.updates.outputs.changed == 'true'
54+
run: pnpm run verify
55+
56+
- name: Install Playwright Browsers
57+
if: steps.updates.outputs.changed == 'true'
58+
run: pnpm exec playwright install --with-deps chromium firefox webkit
59+
60+
- name: E2E
61+
if: steps.updates.outputs.changed == 'true'
62+
run: pnpm run e2e:all
63+
64+
- name: Create Pull Request
65+
if: steps.updates.outputs.changed == 'true'
66+
uses: peter-evans/create-pull-request@v8
67+
with:
68+
add-paths: |
69+
package.json
70+
pnpm-lock.yaml
71+
branch: automated/pnpm-dependencies
72+
commit-message: "chore(deps): update dependencies"
73+
delete-branch: true
74+
title: "chore(deps): update dependencies"
75+
body: |
76+
Weekly grouped dependency updates generated with pnpm.
77+
78+
The full verification suite and cross-browser E2E tests passed
79+
before this pull request was created.

0 commit comments

Comments
 (0)