We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 5d2a31b + f46b885 commit 1c2d540Copy full SHA for 1c2d540
.github/workflows/build-and-deploy.yml
@@ -29,6 +29,24 @@ jobs:
29
with:
30
node-version: ${{ matrix.node-version }}
31
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
+
50
- name: Install dependencies & build
51
run: |
52
# npm ci
0 commit comments