Skip to content

Commit

Permalink
👷 ci: yarn config get cacheFolderコマンドを使用してキャッシュのディレクトリパスを取得する
Browse files Browse the repository at this point in the history
  • Loading branch information
takashi0602 committed Nov 19, 2023
1 parent e5b492d commit cf05a7d
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/deploy-chromatic.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,12 +24,12 @@ jobs:
with:
node-version: 18.17.0

- name: Upgrade to yarn v3
- name: Upgrade to yarn
run: yarn set version berry

- name: Get yarn cache directory path
id: yarn_cache_dir_path
run: echo "YARN_CACHE_DIR_PATH=$(yarn cache dir)" >> $GITHUB_ENV
run: echo "YARN_CACHE_DIR_PATH=$(yarn config get cacheFolder)" >> $GITHUB_ENV

- name: Cache yarn cache directory
uses: actions/cache@v3
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/publish-ghpages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,12 +20,12 @@ jobs:
with:
node-version: 18.17.0

- name: Upgrade to yarn v3
- name: Upgrade to yarn
run: yarn set version berry

- name: Get yarn cache directory path
id: yarn_cache_dir_path
run: echo "YARN_CACHE_DIR_PATH=$(yarn cache dir)" >> $GITHUB_ENV
run: echo "YARN_CACHE_DIR_PATH=$(yarn config get cacheFolder)" >> $GITHUB_ENV

- name: Cache yarn cache directory
uses: actions/cache@v3
Expand Down Expand Up @@ -77,7 +77,7 @@ jobs:

- name: Get yarn cache directory path
id: yarn_cache_dir_path
run: echo "YARN_CACHE_DIR_PATH=$(yarn cache dir)" >> $GITHUB_ENV
run: echo "YARN_CACHE_DIR_PATH=$(yarn config get cacheFolder)" >> $GITHUB_ENV

- name: Cache yarn cache directory
uses: actions/cache@v3
Expand Down

0 comments on commit cf05a7d

Please sign in to comment.