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 19c1904 commit b4ca27cCopy full SHA for b4ca27c
.github/workflows/build.yml
@@ -20,12 +20,17 @@ jobs:
20
with:
21
node-version: ${{ matrix.node-version }}
22
23
- - name: Cache node_modules
24
- uses: actions/cache@v2
+ - name: Get yarn cache directory path
+ 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
29
- path: |
- **/node_modules
- 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-
34
35
- run: yarn --frozen-lockfile
36
- run: yarn lint:js
0 commit comments