Skip to content

Commit a8e30f8

Browse files
committed
ci(docs): use yarn cache
1 parent cdcd4a9 commit a8e30f8

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

.github/workflows/docs.yml

+9
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,15 @@ jobs:
1717
- uses: actions/[email protected]
1818
with:
1919
node-version: 14.x
20+
- name: Get yarn cache
21+
id: yarn-cache
22+
run: echo "::set-output name=dir::$(yarn cache dir)"
23+
- uses: actions/[email protected]
24+
with:
25+
path: ${{ steps.yarn-cache.outputs.dir }}
26+
key: ${{ runner.os }}-yarn-${{ hashFiles('**/package.json') }}
27+
restore-keys: |
28+
${{ runner.os }}-yarn-
2029
- run: yarn
2130
- run: yarn docs
2231
- uses: docker://malept/gha-gh-pages:1.3.0

0 commit comments

Comments
 (0)