generated from otterp012/lerna-rollup-boiler
-
Notifications
You must be signed in to change notification settings - Fork 0
38 lines (38 loc) · 1.08 KB
/
story-deploy.yml
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
name: story-book
on:
push:
branches:
- main
pull_request:
branches:
- dev
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- name: 'Checkout'
uses: actions/checkout@v2
with:
fetch-depth: 0
- name: 'Use NodeJS 14'
uses: actions/setup-node@v2
with:
node-version: '14'
- name: 'Install Dependencies'
run: yarn install
- name: 'Deploy'
id: chromatic
uses: chromaui/action@v1
with:
# 👇 Chromatic projectToken, refer to the manage page to obtain it.
projectToken: ${{ secrets.CHROMATIC_PROJECT_TOKEN }}
- name: Create or update comment
if: github.event_name != 'push'
uses: peter-evans/create-or-update-comment@v1
with:
issue-number: ${{ github.event.pull_request.number }}
body: |
Chromatic build-output:
- :clipboard: [buildUrl](${{steps.chromatic.outputs.buildUrl}})
- :tada: [Storybook preview](${{steps.chromatic.outputs.storybookUrl}})
edit-mode: replace