docs: Fix cache step of React and Next example
This commit is contained in:
parent
b172208a72
commit
1468ca9775
|
@ -495,10 +495,10 @@ jobs:
|
||||||
- name: Cache dependencies
|
- name: Cache dependencies
|
||||||
uses: actions/cache@v1
|
uses: actions/cache@v1
|
||||||
with:
|
with:
|
||||||
path: ~/.npm
|
path: ~/.cache/yarn
|
||||||
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
|
key: ${{ runner.os }}-yarn-${{ hashFiles(format('{0}{1}', github.workspace, '/yarn.lock')) }}
|
||||||
restore-keys: |
|
restore-keys: |
|
||||||
${{ runner.os }}-node-
|
${{ runner.os }}-yarn-
|
||||||
|
|
||||||
- name: install
|
- name: install
|
||||||
run: yarn install
|
run: yarn install
|
||||||
|
|
Loading…
Reference in New Issue