Skip to content

Commit 7252fa0

Browse files
committed
fix #3
1 parent cb5c060 commit 7252fa0

File tree

2 files changed

+8692
-14099
lines changed

2 files changed

+8692
-14099
lines changed

.github/workflows/ci.yaml

+17-17
Original file line numberDiff line numberDiff line change
@@ -13,24 +13,24 @@ jobs:
1313
with:
1414
node-version: ${{ matrix.version }}
1515

16-
# - name: Cache node modules
17-
# id: cache-npm
18-
# uses: actions/cache@v3
19-
# env:
20-
# cache-name: cache-node-modules
21-
# with:
22-
# # npm cache files are stored in `~/.npm` on Linux/macOS
23-
# path: ~/.npm
24-
# key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('**/package-lock.json') }}
25-
# restore-keys: |
26-
# ${{ runner.os }}-build-${{ env.cache-name }}-
27-
# ${{ runner.os }}-build-
28-
# ${{ runner.os }}-
16+
- name: Cache node modules
17+
id: cache-npm
18+
uses: actions/cache@v3
19+
env:
20+
cache-name: cache-node-modules
21+
with:
22+
# npm cache files are stored in `~/.npm` on Linux/macOS
23+
path: ~/.npm
24+
key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('**/package-lock.json') }}
25+
restore-keys: |
26+
${{ runner.os }}-build-${{ env.cache-name }}-
27+
${{ runner.os }}-build-
28+
${{ runner.os }}-
2929
30-
# - if: ${{ steps.cache-npm.outputs.cache-hit != 'true' }}
31-
# name: List the state of node modules
32-
# continue-on-error: true
33-
# run: npm list
30+
- if: ${{ steps.cache-npm.outputs.cache-hit != 'true' }}
31+
name: List the state of node modules
32+
continue-on-error: true
33+
run: npm list
3434
- name: Install modules
3535
run: npm ci
3636

0 commit comments

Comments
 (0)