Skip to content

Commit 8dafcfd

Browse files
chore(CI): remove deprecated use of set-output
1 parent bc8927a commit 8dafcfd

File tree

2 files changed

+11
-9
lines changed

2 files changed

+11
-9
lines changed

.github/workflows/main.yml

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -26,10 +26,11 @@ jobs:
2626

2727
- name: Get yarn cache directory path
2828
id: yarn-cache-dir-path
29-
run: echo "::set-output name=dir::$(yarn config get cacheFolder)"
29+
run: echo "dir=$(yarn config get cacheFolder)" >> "$GITHUB_OUTPUT"
3030

31-
- uses: actions/cache@v3
32-
id: yarn-cache # use this to check for `cache-hit` (`steps.yarn-cache.outputs.cache-hit != 'true'`)
31+
- name: Cache Yarn dependencies
32+
uses: actions/cache@v3
33+
id: yarn-cache
3334
with:
3435
path: ${{ steps.yarn-cache-dir-path.outputs.dir }}
3536
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
@@ -48,16 +49,16 @@ jobs:
4849
- name: Lint files
4950
run: yarn lint:full
5051

51-
- uses: actions/cache@v3
52-
name: Setup Yarn build cache
52+
- name: Cache Yarn build output
53+
uses: actions/cache@v3
5354
id: yarn-build-cache
5455
with:
5556
path: packages/**/dist
56-
key: ${{ runner.os }}-yarn-build-${{ hashFiles('/packages/**/*') }}
57+
key: ${{ runner.os }}-yarn-build-${{ hashFiles('packages/**') }}
5758
restore-keys: |
5859
${{ runner.os }}-yarn-build-
5960

60-
- name: Yarn build without cache
61+
- name: Yarn build (if no cache hit)
6162
if: steps.yarn-build-cache.outputs.cache-hit != 'true'
6263
run: yarn build
6364

.github/workflows/release.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,9 +27,10 @@ jobs:
2727

2828
- name: Get yarn cache directory path
2929
id: yarn-cache-dir-path
30-
run: echo "::set-output name=dir::$(yarn config get cacheFolder)"
30+
run: echo "dir=$(yarn config get cacheFolder)" >> "$GITHUB_OUTPUT"
3131

32-
- uses: actions/cache@v3
32+
- name: Cache Yarn dependencies
33+
uses: actions/cache@v3
3334
id: yarn-cache
3435
with:
3536
path: ${{ steps.yarn-cache-dir-path.outputs.dir }}

0 commit comments

Comments
 (0)