Skip to content

Commit 828fdaa

Browse files
authored
chore: restore npm cache (#2994)
1 parent 3b5076d commit 828fdaa

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

.github/workflows/nodejs.yml

+9
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,16 @@ jobs:
7878
if: matrix.os == 'windows-latest'
7979
run: npm i -g npm
8080

81+
- name: Cache Node.js modules
82+
id: cache
83+
uses: actions/cache@v2
84+
with:
85+
# npm cache files are stored in `~/.npm` on Linux/macOS
86+
path: ~/.npm
87+
key: ${{ runner.OS }}-${{ matrix.node-version }}-${{ hashFiles('**/package-lock.json') }}
88+
8189
- name: Install dependencies
90+
if: steps.cache.outputs.cache-hit != 'true'
8291
run: npm ci
8392

8493
- name: Install webpack ${{ matrix.webpack-version }}

0 commit comments

Comments
 (0)