Feat/#60 ReviewSkeletonCard를 추가합니다. #22
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' | |
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 }} |