Skip to content

Commit 6a7b3ab

Browse files
(actions) use caching function of setup-node (#1866)
1 parent 2f2077e commit 6a7b3ab

File tree

1 file changed

+1
-10
lines changed

1 file changed

+1
-10
lines changed

.github/workflows/nodeCI.yml

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -23,16 +23,7 @@ jobs:
2323
uses: actions/setup-node@v3
2424
with:
2525
node-version: ${{ matrix.node }}
26-
- name: Get yarn cache dir
27-
id: yarn-cache
28-
run: echo "::set-output name=dir::$(yarn cache dir)"
29-
- name: Yarn cache
30-
uses: actions/cache@v3
31-
with:
32-
path: ${{ steps.yarn-cache.outputs.dir }}
33-
key: ${{ runner.os }}-yarn-node${{ matrix.node }}-${{ hashFiles('yarn.lock') }}
34-
restore-keys: |
35-
${{ runner.os }}-yarn-node${{ matrix.node }}-
26+
cache: yarn
3627
- name: yarn install
3728
run: yarn install
3829
- name: yarn test

0 commit comments

Comments
 (0)