Skip to content

Commit

Permalink
env(script): chromatic setting
Browse files Browse the repository at this point in the history
  • Loading branch information
KimKyuHoi committed Dec 6, 2024
1 parent a58630d commit 2d5e08e
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions .github/workflows/chromatic.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,11 @@ jobs:
with:
node-version: '18'

# Yarn Berry 캐시 설정
- name: Enable Corepack
run: |
corepack enable
corepack prepare [email protected] --activate
- name: Get yarn cache directory path
id: yarn-cache-dir-path
run: echo "dir=$(yarn config get cacheFolder)" >> $GITHUB_OUTPUT
Expand All @@ -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
storybookBuildDir: storybook-static
exitZeroOnChanges: true

0 comments on commit 2d5e08e

Please sign in to comment.