Skip to content

Commit 11e78dc

Browse files
committed
Use setup-node to cache yarn
1 parent fc8ac23 commit 11e78dc

File tree

1 file changed

+2
-10
lines changed

1 file changed

+2
-10
lines changed

.github/workflows/release-build.yml

Lines changed: 2 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -25,18 +25,10 @@ jobs:
2525
with:
2626
node-version: 20.x
2727
registry-url: https://registry.npmjs.org
28-
29-
- name: Save yarn cache location to env
30-
run: echo "YARN_CACHE=$(yarn cache dir)" >> $GITHUB_ENV
31-
32-
- name: Cache node_modules
33-
uses: actions/cache@v3
34-
with:
35-
path: ${{ env.YARN_CACHE }}
36-
key: ${{ runner.os }}-node-${{ hashFiles('**/yarn.lock', '**/package-lock.json') }}
28+
cache: yarn
3729

3830
- name: Install dependencies
39-
run: yarn install
31+
run: yarn install --frozen-lockfile
4032

4133
- name: Run linter
4234
run: yarn lint

0 commit comments

Comments
 (0)