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.
1 parent e17771c commit 5b008d0Copy full SHA for 5b008d0
.github/workflows/build.yml
@@ -17,6 +17,18 @@ jobs:
17
uses: actions/setup-node@v1
18
with:
19
node-version: ${{ matrix.node-version }}
20
+ - name: Cache node modules
21
+ uses: actions/cache@v2
22
+ env:
23
+ cache-name: cache-node-modules
24
+ with:
25
+ # npm cache files are stored in `~/.npm` on Linux/macOS
26
+ path: ~/.npm
27
+ key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('**/package-lock.json') }}
28
+ restore-keys: |
29
+ ${{ runner.os }}-build-${{ env.cache-name }}-
30
+ ${{ runner.os }}-build-
31
+ ${{ runner.os }}-
32
- run: npm install
33
- run: npm run build --if-present
34
env:
0 commit comments