Skip to content

feat(sds): 버튼 컴포넌트 추가 #18

feat(sds): 버튼 컴포넌트 추가

feat(sds): 버튼 컴포넌트 추가 #18

Workflow file for this run

name: 'Chromatic Deployment'
on:
pull_request:
branches: [main, develop]
paths:
- '**.stories.tsx'
jobs:
chromatic-deployment:
runs-on: ubuntu-latest
steps:
- uses: pnpm/action-setup@v4
with:
version: 8
- name: Checkout Repository
uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Cache Dependencies
id: cache
uses: actions/cache@v3
with:
path: '**/node_modules'
key: ${{ runner.os }}-node-${{ hashFiles('**/pnpm-lock.yaml') }}-storybook
restore-keys: |
${{ runner.os }}-node-
- name: Install Dependencies
if: steps.cache.outputs.cache-hit != 'true'
run: pnpm install
- name: Publish Project packages/core/sds to Chromatic
id: chromatic-sds
uses: chromaui/action@latest
with:
projectToken: ${{ secrets.CHROMATIC_PROJECT_TOKEN_SDS }}
workingDir: packages/core/sds
onlyChanged: true
externals: packages/core/sds/assets/**
- name: Publish Project apps/web to Chromatic
id: chromatic-web
uses: chromaui/action@latest
with:
projectToken: ${{ secrets.CHROMATIC_PROJECT_TOKEN_WEB }}
workingDir: apps/web
onlyChanged: true
externals: packages/web-domains/assets/**
- name: Storybook Deployment PR Comment
uses: thollander/actions-comment-pull-request@v1
if: ${{ github.event_name == 'pull_request' }}
env:
GITHUB_TOKEN: ${{ secrets.ACCESS_TOKEN }}
with:
message: |
📣 SDS Storybook Deployment: ${{ steps.chromatic-sds.outputs.storybookUrl }}
📣 Web Storybook Deployment: ${{ steps.chromatic-web.outputs.storybookUrl }}