Skip to content

Commit 1c2d540

Browse files
committed
2 parents 5d2a31b + f46b885 commit 1c2d540

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

.github/workflows/build-and-deploy.yml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,24 @@ jobs:
2929
with:
3030
node-version: ${{ matrix.node-version }}
3131

32+
- name: Cache node modules
33+
id: cache-npm
34+
uses: actions/cache@v3
35+
env:
36+
cache-name: cache-node-modules
37+
with:
38+
# npm cache files are stored in `~/.npm` on Linux/macOS
39+
path: ~/.npm
40+
key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('**/package-lock.json') }}
41+
restore-keys: |
42+
${{ runner.os }}-build-${{ env.cache-name }}-
43+
${{ runner.os }}-build-
44+
${{ runner.os }}-
45+
- if: ${{ steps.cache-npm.outputs.cache-hit != 'true' }}
46+
name: List the state of node modules
47+
continue-on-error: true
48+
run: npm list
49+
3250
- name: Install dependencies & build
3351
run: |
3452
# npm ci

0 commit comments

Comments
 (0)