Skip to content

Commit cdcd4a9

Browse files
committed
Revert "ci: use cache built-in to actions/setup-node"
This reverts commit 54418c0. Requires a lock file to be checked in.
1 parent 54418c0 commit cdcd4a9

File tree

2 files changed

+9
-2
lines changed

2 files changed

+9
-2
lines changed

.github/workflows/ci.yml

+9-1
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,15 @@ jobs:
2424
uses: actions/[email protected]
2525
with:
2626
node-version: ${{ matrix.node-version }}
27-
cache: yarn
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-
2836
- name: Install
2937
run: yarn
3038
- name: Lint

.github/workflows/docs.yml

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

0 commit comments

Comments
 (0)