Skip to content

Commit 2b5d014

Browse files
nlfwraithgar
authored andcommitted
chore(ci): update setup-node action to v2 and enable cache
PR-URL: #3958 Credit: @nlf Close: #3958 Reviewed-by: @wraithgar
1 parent f7a8118 commit 2b5d014

File tree

1 file changed

+12
-6
lines changed

1 file changed

+12
-6
lines changed

.github/workflows/ci.yml

Lines changed: 12 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,10 @@ jobs:
1515
# Checkout the npm/cli repo
1616
- uses: actions/checkout@v2
1717
- name: Use Node.js 14.x
18-
uses: actions/setup-node@v1
18+
uses: actions/setup-node@v2
1919
with:
2020
node-version: 14.x
21+
cache: npm
2122
- name: Install dependencies
2223
run: |
2324
node ./bin/npm-cli.js install --ignore-scripts --no-audit
@@ -32,9 +33,10 @@ jobs:
3233
steps:
3334
- uses: actions/checkout@v2
3435
- name: Use Node.js 14.x
35-
uses: actions/setup-node@v1
36+
uses: actions/setup-node@v2
3637
with:
3738
node-version: 14.x
39+
cache: npm
3840
- name: Install dependencies
3941
run: |
4042
node ./bin/npm-cli.js install --ignore-scripts --no-audit
@@ -50,9 +52,10 @@ jobs:
5052
# Checkout the npm/cli repo
5153
- uses: actions/checkout@v2
5254
- name: Use Node.js 14.x
53-
uses: actions/setup-node@v1
55+
uses: actions/setup-node@v2
5456
with:
5557
node-version: 14.x
58+
cache: npm
5659
- name: Install dependencies
5760
run: |
5861
node ./bin/npm-cli.js install --ignore-scripts --no-audit
@@ -86,9 +89,10 @@ jobs:
8689

8790
# Installs the specific version of Node.js
8891
- name: Use Node.js ${{ matrix.node-version }}
89-
uses: actions/setup-node@v1
92+
uses: actions/setup-node@v2
9093
with:
9194
node-version: ${{ matrix.node-version }}
95+
cache: npm
9296

9397
# Run the installer script
9498
- name: Install dependencies
@@ -128,9 +132,10 @@ jobs:
128132

129133
# Installs the specific version of Node.js
130134
- name: Use Node.js ${{ matrix.node-version }}
131-
uses: actions/setup-node@v1
135+
uses: actions/setup-node@v2
132136
with:
133137
node-version: ${{ matrix.node-version }}
138+
cache: npm
134139

135140
# Run the installer script
136141
- name: Install dependencies
@@ -169,9 +174,10 @@ jobs:
169174

170175
# Installs the specific version of Node.js
171176
- name: Use Node.js ${{ matrix.node-version }}
172-
uses: actions/setup-node@v1
177+
uses: actions/setup-node@v2
173178
with:
174179
node-version: ${{ matrix.node-version }}
180+
cache: npm
175181

176182
# Run the installer script
177183
- name: Install dependencies

0 commit comments

Comments
 (0)