|
15 | 15 | # Checkout the npm/cli repo |
16 | 16 | - uses: actions/checkout@v2 |
17 | 17 | - name: Use Node.js 14.x |
18 | | - uses: actions/setup-node@v1 |
| 18 | + uses: actions/setup-node@v2 |
19 | 19 | with: |
20 | 20 | node-version: 14.x |
| 21 | + cache: npm |
21 | 22 | - name: Install dependencies |
22 | 23 | run: | |
23 | 24 | node ./bin/npm-cli.js install --ignore-scripts --no-audit |
|
32 | 33 | steps: |
33 | 34 | - uses: actions/checkout@v2 |
34 | 35 | - name: Use Node.js 14.x |
35 | | - uses: actions/setup-node@v1 |
| 36 | + uses: actions/setup-node@v2 |
36 | 37 | with: |
37 | 38 | node-version: 14.x |
| 39 | + cache: npm |
38 | 40 | - name: Install dependencies |
39 | 41 | run: | |
40 | 42 | node ./bin/npm-cli.js install --ignore-scripts --no-audit |
|
50 | 52 | # Checkout the npm/cli repo |
51 | 53 | - uses: actions/checkout@v2 |
52 | 54 | - name: Use Node.js 14.x |
53 | | - uses: actions/setup-node@v1 |
| 55 | + uses: actions/setup-node@v2 |
54 | 56 | with: |
55 | 57 | node-version: 14.x |
| 58 | + cache: npm |
56 | 59 | - name: Install dependencies |
57 | 60 | run: | |
58 | 61 | node ./bin/npm-cli.js install --ignore-scripts --no-audit |
|
86 | 89 |
|
87 | 90 | # Installs the specific version of Node.js |
88 | 91 | - name: Use Node.js ${{ matrix.node-version }} |
89 | | - uses: actions/setup-node@v1 |
| 92 | + uses: actions/setup-node@v2 |
90 | 93 | with: |
91 | 94 | node-version: ${{ matrix.node-version }} |
| 95 | + cache: npm |
92 | 96 |
|
93 | 97 | # Run the installer script |
94 | 98 | - name: Install dependencies |
@@ -128,9 +132,10 @@ jobs: |
128 | 132 |
|
129 | 133 | # Installs the specific version of Node.js |
130 | 134 | - name: Use Node.js ${{ matrix.node-version }} |
131 | | - uses: actions/setup-node@v1 |
| 135 | + uses: actions/setup-node@v2 |
132 | 136 | with: |
133 | 137 | node-version: ${{ matrix.node-version }} |
| 138 | + cache: npm |
134 | 139 |
|
135 | 140 | # Run the installer script |
136 | 141 | - name: Install dependencies |
@@ -169,9 +174,10 @@ jobs: |
169 | 174 |
|
170 | 175 | # Installs the specific version of Node.js |
171 | 176 | - name: Use Node.js ${{ matrix.node-version }} |
172 | | - uses: actions/setup-node@v1 |
| 177 | + uses: actions/setup-node@v2 |
173 | 178 | with: |
174 | 179 | node-version: ${{ matrix.node-version }} |
| 180 | + cache: npm |
175 | 181 |
|
176 | 182 | # Run the installer script |
177 | 183 | - name: Install dependencies |
|
0 commit comments