-
Notifications
You must be signed in to change notification settings - Fork 1
42 lines (36 loc) · 1.09 KB
/
preview-storybook.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
name: Preview Storybook
on:
pull_request:
paths:
- 'src/components/**'
types: [opened, reopened, synchronize]
branches: ['main']
workflow_dispatch:
jobs:
preview-storybook:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- name: install packages
run: yarn
- name: deploy chromatic
id: chromatic
uses: chromaui/action@v1
with:
projectToken: ${{ secrets.CHROMATIC_PROJECT_TOKEN }}
token: ${{ secrets.GITHUB_TOKEN }}
onlyChanged: true
autoAcceptChanges: true
- name: Get current time
uses: josStorer/get-current-time@v2
id: current-time
with:
format: 'YYYY년 MM월 DD일 HH시 mm분 ss초'
utcOffset: '+09:00'
- name: PR comment
uses: thollander/actions-comment-pull-request@v2
with:
comment_tag: ${{github.event.number}}-storybook
message: |
Update: ${{ steps.current-time.outputs.formattedTime }}
Storybook 미리보기: ${{ steps.chromatic.outputs.storybookUrl }}