[DS-188] Color storybook 문서에 영어 번역 추가 #777
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: "Chromatic Deployment - Design System" | |
on: | |
push: | |
branches: | |
- "main" | |
paths: | |
- ".github/workflows/chromatic.yml" | |
- "packages/design-system/**" | |
- "packages/design-system-icons/**" | |
pull_request: | |
types: [opened, synchronize, reopened] | |
paths: | |
- ".github/workflows/chromatic.yml" | |
- "packages/design-system/**" | |
- "packages/design-system-icons/**" | |
jobs: | |
chromatic-deployment: | |
# Operating System | |
runs-on: ubuntu-latest | |
# Job steps | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 # Required to retrieve git history | |
- uses: actions/setup-node@v4 | |
with: | |
node-version: "18" | |
cache: "npm" | |
- uses: nrwl/nx-set-shas@v4 | |
- name: Nx Cache | |
uses: actions/cache@v4 | |
with: | |
path: node_modules/.cache/nx | |
key: ${{ github.repository }}-nx-${{ env.NX_BASE }} | |
restore-keys: | | |
${{ github.repository }}-nx- | |
- name: Install dependencies | |
run: npm ci | |
- name: Build design-system package and its dependencies | |
run: npx nx build @lunit/design-system | |
- name: Publish to Chromatic | |
id: chromatic | |
uses: chromaui/action@latest | |
with: | |
projectToken: ${{ secrets.CHROMATIC_PROJECT_TOKEN }} | |
buildScriptName: build-storybook:design-system | |
- name: Comment preview link | |
if: ${{ github.event_name == 'pull_request' }} | |
uses: thollander/actions-comment-pull-request@v2 | |
with: | |
message: "Design System Storybook: ${{ steps.chromatic.outputs.storybookUrl }}" | |
comment_tag: "PREVIEW_LINK_COMMENT" |