Skip to content

Commit 54418c0

Browse files
committed
ci: use cache built-in to actions/setup-node
1 parent f04cdb9 commit 54418c0

File tree

2 files changed

+2
-9
lines changed

2 files changed

+2
-9
lines changed

.github/workflows/ci.yml

+1-9
Original file line numberDiff line numberDiff line change
@@ -24,15 +24,7 @@ jobs:
2424
uses: actions/[email protected]
2525
with:
2626
node-version: ${{ matrix.node-version }}
27-
- name: Get yarn cache
28-
id: yarn-cache
29-
run: echo "::set-output name=dir::$(yarn cache dir)"
30-
- uses: actions/[email protected]
31-
with:
32-
path: ${{ steps.yarn-cache.outputs.dir }}
33-
key: ${{ runner.os }}-yarn-${{ hashFiles('**/package.json') }}
34-
restore-keys: |
35-
${{ runner.os }}-yarn-
27+
cache: yarn
3628
- name: Install
3729
run: yarn
3830
- name: Lint

.github/workflows/docs.yml

+1
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ jobs:
1717
- uses: actions/[email protected]
1818
with:
1919
node-version: 14.x
20+
cache: yarn
2021
- run: yarn
2122
- run: yarn docs
2223
- uses: docker://malept/gha-gh-pages:1.3.0

0 commit comments

Comments
 (0)