Skip to content

스토리북 배포 링크 코멘트로 추가되게 작업한다. (#54) #26

스토리북 배포 링크 코멘트로 추가되게 작업한다. (#54)

스토리북 배포 링크 코멘트로 추가되게 작업한다. (#54) #26

Workflow file for this run

name: 'Chromatic'
on: push
jobs:
chromatic:
name: Run Chromatic
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: actions/setup-node@v4
with:
node-version: 20
- name: Install dependencies
run: |
cd frontend
yarn install --frozen-lockfile
- name: Run Chromatic
run: |
cd frontend
npx chromatic --project-token=${{ secrets.CHROMATIC_PROJECT_TOKEN }} --exit-zero-on-changes
- name: Comment on PR
uses: thollander/actions-comment-pull-request@v1
if: ${{ github.event_name == 'pull_request' }}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
message: '🚀 **storybook**: ${{ steps.publish_chromatic.outputs.storybookUrl }}'