File tree Expand file tree Collapse file tree 3 files changed +39
-21
lines changed Expand file tree Collapse file tree 3 files changed +39
-21
lines changed Original file line number Diff line number Diff line change 1+ name : automatic-npm-check-updates
2+
3+ on :
4+ workflow_dispatch : {}
5+ schedule :
6+ - cron : " 0 0 * * *"
7+
8+ jobs :
9+ automatic-npm-check-updates :
10+ runs-on : ubuntu-latest
11+ steps :
12+ - uses : actions/checkout@main
13+ - uses : actions/setup-node@main
14+ with :
15+ node-version : " lts/*"
16+ check-latest : true
17+ - name : Cache node modules
18+ uses : actions/cache@main
19+ env :
20+ cache-name : cache-node-modules
21+ with :
22+ path : ~/.npm
23+ key : ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('**/package-lock.json') }}
24+ restore-keys : |
25+ ${{ runner.os }}-build-${{ env.cache-name }}-
26+ ${{ runner.os }}-build-
27+ ${{ runner.os }}-
28+ - uses : fardjad/my-actions/automatic-npm-check-updates@main
29+ with :
30+ github-token : ${{ secrets.GH_PAT }}
31+ post-update-commands : |
32+ npm install
33+ npm audit fix --quiet --no-progress --no-fund || true
34+ npm run fix
35+
36+ npm version patch --no-git-tag-version
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 1+ {
2+ "dep" : [" prod" ]
3+ }
You can’t perform that action at this time.
0 commit comments