Skip to content

Commit 5d6f0c8

Browse files
authored
ci(workflow): add 'npm' cache for actions/setup-node in .github/workflows (#379)
1 parent 21c0493 commit 5d6f0c8

File tree

3 files changed

+6
-3
lines changed

3 files changed

+6
-3
lines changed

.github/workflows/check-dist.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,9 +24,10 @@ jobs:
2424
- uses: actions/checkout@v2
2525

2626
- name: Set Node.js 16.x
27-
uses: actions/setup-node@v1
27+
uses: actions/setup-node@v3
2828
with:
2929
node-version: 16.x
30+
cache: npm
3031

3132
- name: Install dependencies
3233
run: npm ci

.github/workflows/licensed.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,10 @@ jobs:
1515
steps:
1616
- uses: actions/checkout@v2
1717
- name: Set Node.js 16.x
18-
uses: actions/setup-node@v2
18+
uses: actions/setup-node@v3
1919
with:
2020
node-version: 16.x
21+
cache: npm
2122
- run: npm ci
2223
- name: Install licensed
2324
run: |

.github/workflows/workflow.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,10 @@ jobs:
2020
uses: actions/checkout@v2
2121

2222
- name: Set Node.js 16.x
23-
uses: actions/setup-node@v1
23+
uses: actions/setup-node@v3
2424
with:
2525
node-version: 16.x
26+
cache: npm
2627

2728
- name: npm ci
2829
run: npm ci

0 commit comments

Comments
 (0)