Skip to content

Commit

Permalink
ci: 파이프라인 제대로 캐시 적용 안되어 동작안하는 이슈 수정 (#332)
Browse files Browse the repository at this point in the history
  • Loading branch information
saseungmin authored Aug 13, 2024
1 parent a126aaa commit 326ff72
Showing 1 changed file with 14 additions and 4 deletions.
18 changes: 14 additions & 4 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,11 @@ on:

env:
CACHED_DEPENDENCY_PATHS: |
${{ github.workspace }}/.yarn/cache
${{ github.workspace }}/.yarn/unplugged
${{ github.workspace }}/.pnp.*
.yarn/cache
.yarn/unplugged
.yarn/build-state.yml
.yarn/install-state.gz
.pnp.*
CACHED_BUILD_PATHS: ${{ github.workspace }}/.next
DEFAULT_NODE_VERSION: "v20.12.2"
DEFAULT_YARN_VERSION: "4.4.0"
Expand Down Expand Up @@ -46,9 +48,11 @@ jobs:
id: cache_dependencies
with:
path: |
${{ env.CACHED_DEPENDENCY_PATHS }}
${{ steps.yarn-cache-dir-path.outputs.dir }}
${{ env.CACHED_DEPENDENCY_PATHS }}
key: ${{ steps.compute_lockfile_hash.outputs.hash }}
restore-keys: |
${{ runner.os }}-yarn-
- name: Install dependencies
if: steps.cache_dependencies.outputs.cache-hit != 'true'
Expand Down Expand Up @@ -182,6 +186,12 @@ jobs:
with:
node-version: ${{ env.DEFAULT_NODE_VERSION }}

- name: Check dependency cache
uses: actions/cache@v4
with:
path: ${{ needs.job_install_dependencies.outputs.yarn_cache_dir_path }}
key: ${{ needs.job_install_dependencies.outputs.dependency_cache_key }}

- name: Publish Project to Chromatic
uses: chromaui/action@latest
with:
Expand Down

0 comments on commit 326ff72

Please sign in to comment.