mirror of
https://github.com/kou029w/_.git
synced 2025-01-31 06:18:07 +00:00
use cache
This commit is contained in:
parent
f359c63225
commit
607cb9f786
1 changed files with 6 additions and 0 deletions
6
.github/workflows/docs.yml
vendored
6
.github/workflows/docs.yml
vendored
|
@ -5,6 +5,12 @@ jobs:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v1
|
- uses: actions/checkout@v1
|
||||||
|
- run: echo "::set-env name=YARN_CACHE_DIR::$(yarn cache dir)"
|
||||||
|
- uses: actions/cache@v1
|
||||||
|
with:
|
||||||
|
path: ${{ env.YARN_CACHE_DIR }}
|
||||||
|
key: yarn-${{ hashFiles('**/yarn.lock') }}
|
||||||
|
restore-keys: yarn-
|
||||||
- uses: actions/setup-node@v1
|
- uses: actions/setup-node@v1
|
||||||
with: { node-version: 12 }
|
with: { node-version: 12 }
|
||||||
- run: yarn
|
- run: yarn
|
||||||
|
|
Loading…
Add table
Reference in a new issue