Skip to content

Commit 77585b4

Browse files
committed
Update upgrade-dependencies workflow
1 parent fd5ac30 commit 77585b4

File tree

3 files changed

+39
-21
lines changed

3 files changed

+39
-21
lines changed
Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
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

.github/workflows/upgrade-dependencies.yml

Lines changed: 0 additions & 21 deletions
This file was deleted.

.ncurc.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"dep": ["prod"]
3+
}

0 commit comments

Comments
 (0)