Skip to content

Commit 6a07042

Browse files
committed
chore: update github action to use yarn berry
1 parent 24b57bd commit 6a07042

File tree

1 file changed

+7
-6
lines changed

1 file changed

+7
-6
lines changed

.github/workflows/release.yml

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -29,16 +29,17 @@ jobs:
2929
# https://github.com/actions/cache/blob/master/examples.md#node---yarn
3030
- name: Get yarn cache directory path
3131
id: yarn-cache-dir-path
32-
run: echo "::set-output name=dir::$(yarn cache dir)"
33-
- uses: actions/cache@v2
34-
id: yarn-cache
32+
run: echo "::set-output name=dir::./.yarn/cache"
33+
- name: Cache Yarn
34+
uses: actions/cache@v2
35+
id: yarn-cache # use this to check for `cache-hit` (`steps.yarn-cache.outputs.cache-hit != 'true'`)
3536
with:
3637
path: ${{ steps.yarn-cache-dir-path.outputs.dir }}
37-
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
38+
key: ${{ runner.os }}-yarn3-${{ hashFiles('**/yarn.lock') }}
3839
restore-keys: |
39-
${{ runner.os }}-yarn-
40+
${{ runner.os }}-yarn3-
4041
- name: Install dependencies
41-
run: yarn install --frozen-lockfile
42+
run: yarn install --immutable
4243
- name: Ensure linted
4344
run: yarn run ensure-linted
4445
- name: Test

0 commit comments

Comments
 (0)