Skip to content

Refactor/#22 변경된 Onboarding Flow를 반영합니다. #25

Refactor/#22 변경된 Onboarding Flow를 반영합니다.

Refactor/#22 변경된 Onboarding Flow를 반영합니다. #25

name: 'Chromatic Deployment'
on:
pull_request:
paths:
- 'src/**/.stories.tsx'
types: [opened, synchronize, reopened]
branches: ['dev']
jobs:
chromatic-deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- run: yarn
- uses: chromaui/action@v1
id: chromatic-deploy
with:
projectToken: ${{ secrets.CHROMATIC_PROJECT_TOKEN }}
token: ${{ secrets.GITHUB_TOKEN }}
- name: PR Auto Comment
uses: thollander/actions-comment-pull-request@v2
with:
message: '➡️ 추가된 Storybook 미리보기: ${{ steps.chromatic-deploy.outputs.storybookUrl }}'
- name: Discord Webhook Action
uses: tsickert/[email protected]
with:
webhook-url: ${{ secrets.WEBHOOK_URL }}
embed-title: 'Storybook 변경 사항 발견 😃'
embed-description: '작업: "${{ github.event.pull_request.title }}" 에서 추가된 Storybook을 확인해주세요!'
embed-url: ${{ steps.chromatic-deploy.outputs.url }}