Skip to content

Commit 9214c3b

Browse files
committed
ci(#43): using npm to cache and cached modules
1 parent d6660d6 commit 9214c3b

1 file changed

Lines changed: 12 additions & 12 deletions

File tree

.github/workflows/node.js.yml

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -24,19 +24,19 @@ jobs:
2424
uses: actions/setup-node@v1
2525
with:
2626
node-version: ${{ matrix.node-version }}
27-
# - run: yarn && yarn test:clean
27+
2828
- name: Cache node modules
29-
uses: actions/cache@v2
30-
env:
31-
cache-name: cache-node-modules
32-
with:
33-
# npm cache files are stored in `~/.npm` on Linux/macOS
34-
path: ~/.npm
35-
key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('**/package-lock.json') }}
36-
restore-keys: |
37-
${{ runner.os }}-build-${{ env.cache-name }}-
38-
${{ runner.os }}-build-
39-
${{ runner.os }}-
29+
uses: actions/cache@v2
30+
env:
31+
cache-name: cache-node-modules
32+
with:
33+
# npm cache files are stored in `~/.npm` on Linux/macOS
34+
path: ~/.npm
35+
key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('**/package-lock.json') }}
36+
restore-keys: |
37+
${{ runner.os }}-build-${{ env.cache-name }}-
38+
${{ runner.os }}-build-
39+
${{ runner.os }}-
4040
- name: Install dependencies
4141
run: |
4242
npm i jest typescript rollup typedoc -g

0 commit comments

Comments
 (0)