-
Notifications
You must be signed in to change notification settings - Fork 0
40 lines (34 loc) · 999 Bytes
/
chromatic.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
39
40
name: 'Chromatic'
on:
workflow_call:
workflow_dispatch:
pull_request:
types:
- opened
- reopened
- synchronize
jobs:
chromatic-deployment:
runs-on: ubuntu-latest
steps:
- name: checkout repository
uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Install dependencies
run: yarn
- name: Publish to Chromatic
id: chromatic
uses: chromaui/action@v1
with:
projectToken: ${{ secrets.CHROMATIC_PROJECT_TOKEN }}
exitZeroOnChanges: true
- uses: marocchino/sticky-pull-request-comment@v2
with:
header: pr-preview
message: |
> :rocket: Deployed preview of ${{ github.event.pull_request.head.sha }}
| name | url |
|-----------|-----|
| Chromatic Build | ${{ steps.chromatic.outputs.buildUrl }} |
| Chromatic Storybook | ${{ steps.chromatic.outputs.storybookUrl }} |