Skip to content

Commit b4ca27c

Browse files
committed
update yarn cache
1 parent 19c1904 commit b4ca27c

File tree

1 file changed

+10
-5
lines changed

1 file changed

+10
-5
lines changed

.github/workflows/build.yml

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -20,12 +20,17 @@ jobs:
2020
with:
2121
node-version: ${{ matrix.node-version }}
2222

23-
- name: Cache node_modules
24-
uses: actions/cache@v2
23+
- name: Get yarn cache directory path
24+
id: yarn-cache-dir-path
25+
run: echo "::set-output name=dir::$(yarn cache dir)"
26+
27+
- uses: actions/cache@v2
28+
id: yarn-cache
2529
with:
26-
path: |
27-
**/node_modules
28-
key: ${{ runner.os }}-${{ hashFiles('**/lockfiles') }}
30+
path: ${{ steps.yarn-cache-dir-path.outputs.dir }}
31+
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
32+
restore-keys: |
33+
${{ runner.os }}-yarn-
2934
3035
- run: yarn --frozen-lockfile
3136
- run: yarn lint:js

0 commit comments

Comments
 (0)