Skip to content

Commit 72197cf

Browse files
committed
chore: set yarn cache directory
1 parent 18f9731 commit 72197cf

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

.github/workflows/publish.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -26,21 +26,21 @@ jobs:
2626
registry-url: "https://registry.npmjs.org"
2727

2828
- name: Get cache directory
29-
id: npm-cache-dir
29+
id: yarn-cache-dir
3030
run: |
31-
echo "::set-output name=dir::$(npm config get cache)"
31+
echo "::set-output name=dir::$(yarn cache dir)"
3232
3333
- name: Restoring cache
3434
uses: actions/cache@v2
35-
id: npm-cache # use this to check for `cache-hit` ==> if: steps.npm-cache.outputs.cache-hit != 'true'
35+
id: yarn-cache # use this to check for `cache-hit` ==> if: steps.yarn-cache.outputs.cache-hit != 'true'
3636
with:
37-
path: ${{ steps.npm-cache-dir.outputs.dir }}
37+
path: ${{ steps.yarn-cache-dir.outputs.dir }}
3838
key: ${{ runner.os }}-node-${{ hashFiles('**/yarn.lock') }}
3939
restore-keys: |
4040
${{ runner.os }}-yarn-
4141
4242
- name: Install Packages
43-
run: yarn install --frozen-lockfile --cache-folder .npm --prefer-offline
43+
run: yarn install --frozen-lockfile --prefer-offline
4444

4545
- name: Build
4646
run: yarn prepack

0 commit comments

Comments
 (0)