From 2d5e08e770ea7a6e625e48f388cb799387ee3e5d Mon Sep 17 00:00:00 2001 From: KimKyuHoi Date: Fri, 6 Dec 2024 14:38:15 +0900 Subject: [PATCH] env(script): chromatic setting --- .github/workflows/chromatic.yml | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/.github/workflows/chromatic.yml b/.github/workflows/chromatic.yml index bff2e0a..0368c40 100644 --- a/.github/workflows/chromatic.yml +++ b/.github/workflows/chromatic.yml @@ -19,7 +19,11 @@ jobs: with: node-version: '18' - # Yarn Berry 캐시 설정 + - name: Enable Corepack + run: | + corepack enable + corepack prepare yarn@4.5.3 --activate + - name: Get yarn cache directory path id: yarn-cache-dir-path run: echo "dir=$(yarn config get cacheFolder)" >> $GITHUB_OUTPUT @@ -37,9 +41,13 @@ jobs: yarn install yarn dlx @yarnpkg/sdks vscode + - name: Build Storybook + run: yarn workspace @zagdang/ui build-storybook + - name: Publish to Chromatic uses: chromaui/action@latest with: projectToken: ${{ secrets.CHROMATIC_PROJECT_TOKEN }} workingDir: packages/ui - exitZeroOnChanges: true # optional, prevent CI failing on changes \ No newline at end of file + storybookBuildDir: storybook-static + exitZeroOnChanges: true \ No newline at end of file