Skip to content

Commit 4572974

Browse files
committed
Use actions/setup-node@v4 cache
1 parent d6ec12f commit 4572974

File tree

1 file changed

+1
-10
lines changed

1 file changed

+1
-10
lines changed

.github/workflows/continuous-integration.yaml

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -9,16 +9,7 @@ jobs:
99
- uses: actions/setup-node@v4
1010
with:
1111
node-version: '20'
12-
- name: Get yarn cache directory path
13-
id: yarn-cache-dir-path
14-
run: echo "dir=$(yarn cache dir)" >> $GITHUB_OUTPUT
15-
- uses: actions/cache@v4
16-
id: yarn-cache
17-
with:
18-
path: ${{ steps.yarn-cache-dir-path.outputs.dir }}
19-
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
20-
restore-keys: |
21-
${{ runner.os }}-yarn-
12+
cache: 'yarn'
2213
- run: yarn install --frozen-lockfile
2314
- run: yarn run test
2415
- run: yarn run lint

0 commit comments

Comments
 (0)