-
Notifications
You must be signed in to change notification settings - Fork 0
55 lines (44 loc) · 1.52 KB
/
update-deps.yml
File metadata and controls
55 lines (44 loc) · 1.52 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
name: Update Dependencies
on:
schedule:
# Run weekly on Mondays at 9 AM UTC
- cron: "0 9 * * 1"
workflow_dispatch: # Allow manual trigger
jobs:
update-dependencies:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
token: ${{ secrets.GITHUB_TOKEN }}
- uses: actions/setup-node@v4
with:
node-version: "22"
cache: "npm"
- name: Install dependencies
run: npm ci
- name: Check for security vulnerabilities
run: npm audit --audit-level high
- name: Update dependencies
run: |
npm update
npm audit fix --force || true
- name: Run tests to ensure updates don't break anything
run: |
npx playwright install --with-deps
npm run test || echo "Tests failed after dependency update"
- name: Create Pull Request
uses: peter-evans/create-pull-request@v5
with:
token: ${{ secrets.GITHUB_TOKEN }}
commit-message: "chore: update dependencies and fix security vulnerabilities"
title: "chore: automated dependency updates"
body: |
Automated dependency updates and security fixes.
This PR was automatically created to:
- Update npm dependencies
- Fix security vulnerabilities
- Ensure tests still pass
Please review the changes and merge if everything looks good.
branch: automated-dependency-updates
delete-branch: true