Skip to content

Commit 56a7032

Browse files
committed
feat(ci): use yarn cache feature built in to setup-node action
1 parent 990c98d commit 56a7032

1 file changed

Lines changed: 1 addition & 6 deletions

File tree

.github/workflows/ci.yml

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -15,16 +15,11 @@ jobs:
1515
steps:
1616
- name: git checkout
1717
uses: actions/checkout@v6
18-
- name: yarn cache
19-
uses: actions/cache@v5
20-
with:
21-
path: ~/.yarn/berry/cache
22-
key: ${{runner.os}}-node${{matrix.node-version}}-yarn-${{hashFiles('**/yarn.lock')}}
23-
restore-keys: ${{runner.os}}-node${{matrix.node-version}}-yarn-
2418
- name: Set up Node.js v${{matrix.node-version}}
2519
uses: actions/setup-node@v6
2620
with:
2721
node-version: ${{matrix.node-version}}
22+
cache: yarn
2823
- run: corepack yarn
2924
- run: corepack yarn test
3025
- run: corepack yarn lint

0 commit comments

Comments
 (0)