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:
|
with:
|
||||||
node-version: '*'
|
node-version: '*'
|
||||||
check-latest: true
|
check-latest: true
|
||||||
- name: Get yarn cache directory path
|
cache: yarn
|
||||||
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-
|
|
||||||
- uses: actions/download-artifact@master
|
- uses: actions/download-artifact@master
|
||||||
with:
|
with:
|
||||||
name: dev-test-website-${{ runner.os }}
|
name: dev-test-website-${{ runner.os }}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user