@@ -3,7 +3,7 @@ name: Auto-update dependencies
33on :
44 schedule :
55 # Every day at 02:00 UTC
6- - cron : ' 0 2 * * *'
6+ - cron : " 0 2 * * *"
77 workflow_dispatch :
88
99permissions :
@@ -18,31 +18,41 @@ jobs:
1818 - name : Check out Git repository
1919 uses : actions/checkout@v4
2020
21- - name : Install Node.js and Yarn
21+ - name : Install Node.js
2222 uses : actions/setup-node@v4
2323 with :
2424 node-version : 22
2525
26- - name : yarn install
27- run : yarn install
26+ - name : Install dependencies
27+ run : npm ci
2828
2929 - name : Update dependencies
3030 run : |
3131 npm install -g npm-check-updates
32+
33+ # Update to latest minor+patch (non-breaking)
3234 ncu -u --target minor
33- yarn install
35+
36+ # Also apply patch-only updates for packages already at their major
37+ ncu -u --target patch
38+
39+ # Actually upgrade all resolutions in package-lock.json
40+ npm install
41+
42+ # Deduplicate lockfile to remove old vulnerable transitive deps
43+ npm dedupe
3444
3545 - name : Create Pull Request
3646 id : create-pr
37- uses : peter-evans/create-pull-request@v5
47+ uses : peter-evans/create-pull-request@v7
3848 with :
3949 token : ${{ secrets.PAT_TOKEN }}
40- commit-message : ' chore: update dependencies'
41- title : ' chore: update dependencies'
50+ commit-message : " chore: update dependencies"
51+ title : " chore: update dependencies"
4252 body : |
4353 Automated dependency update.
4454
45- This PR updates all dependencies in `package.json` and `yarn. lock`.
55+ This PR updates all dependencies in `package.json` and `package- lock.json `.
4656
4757 Please review and merge if all checks pass.
4858 branch : chore/update-dependencies
0 commit comments