Skip to content

Commit 6d57762

Browse files
committed
CI cache
1 parent 9dec0ec commit 6d57762

File tree

1 file changed

+6
-11
lines changed

1 file changed

+6
-11
lines changed

.github/workflows/ci.yml

Lines changed: 6 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -17,19 +17,14 @@ jobs:
1717
with:
1818
node-version: ${{ matrix.node }}
1919

20-
- name: Get yarn cache directory path
21-
id: yarn-cache-path
22-
run: echo "::set-output name=dir::$(yarn cache dir)"
23-
24-
- uses: actions/cache@master
25-
id: yarn-cache
20+
- name: Cache Dependencies
21+
uses: actions/cache@v2
2622
with:
27-
path: ${{ steps.yarn-cache-path.outputs.dir }}
28-
key: yarn-${{ hashFiles('**/yarn.lock') }}
29-
restore-keys: yarn-
23+
path: ./node_modules
24+
key: ${{ runner.os }}-${{ matrix.node }}-modules-${{ hashFiles('**/yarn.lock') }}
3025

31-
- name: Install dependencies
32-
run: yarn install
26+
- name: Install Dependencies & Build
27+
run: yarn install --frozen-lockfile
3328

3429
- name: Lint and Test with ${{ matrix.node }}
3530
env:

0 commit comments

Comments
 (0)