ci(workflow): add yarn' cache from setup-node action to 'e2e-with-cypress' job (#5957)
This commit is contained in:
parent
b5d8881054
commit
936142e5c6
10
.github/workflows/nodejs.yml
vendored
10
.github/workflows/nodejs.yml
vendored
@ -61,15 +61,7 @@ jobs:
|
||||
with:
|
||||
node-version: '*'
|
||||
check-latest: true
|
||||
- name: Get yarn cache directory path
|
||||
id: yarn-cache-dir-path
|
||||
run: echo "::set-output name=dir::$(yarn cache dir)"
|
||||
- uses: actions/cache@v2
|
||||
with:
|
||||
path: ${{ steps.yarn-cache-dir-path.outputs.dir }}
|
||||
key: ${{ runner.os }}-yarn-${{ hashFiles(format('{0}{1}', github.workspace, '/yarn.lock')) }}
|
||||
restore-keys: |
|
||||
${{ runner.os }}-yarn-
|
||||
cache: yarn
|
||||
- uses: actions/download-artifact@master
|
||||
with:
|
||||
name: dev-test-website-${{ runner.os }}
|
||||
|
Loading…
x
Reference in New Issue
Block a user