File tree Expand file tree Collapse file tree 2 files changed +11
-9
lines changed
Expand file tree Collapse file tree 2 files changed +11
-9
lines changed Original file line number Diff line number Diff 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
Original file line number Diff line number Diff line change 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 }}
You can’t perform that action at this time.
0 commit comments