Skip to content

Commit 6d1b9df

Browse files
committed
refactor: chromatic yml edit (#172)
1 parent bc8adb8 commit 6d1b9df

File tree

1 file changed

+15
-10
lines changed

1 file changed

+15
-10
lines changed

.github/workflows/chromatic.yml

Lines changed: 15 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,26 @@
1-
# Workflow name
21
name: "Chromatic Deployment"
32

4-
# Event for the workflow
53
on: push
64

7-
# List of jobs
85
jobs:
9-
test:
6+
chromatic-deployment:
107
# Operating System
8+
name: Chromatic
119
runs-on: ubuntu-latest
1210
# Job steps
1311
steps:
14-
- uses: actions/checkout@v1
15-
- run: yarn
16-
#👇 Adds Chromatic as a step in the workflow
17-
- uses: chromaui/action@v1
18-
# Options required for Chromatic's GitHub Action
12+
- name: Checkout
13+
uses: actions/checkout@v1
14+
15+
- name: Install dependencies
16+
run: yarn
17+
18+
- name: Publish to Chromatic
19+
uses: chromaui/action@v1
1920
with:
20-
#👇 Chromatic projectToken, see https://storybook.js.org/tutorials/intro-to-storybook/react/ko/deploy/ to obtain it
2121
projectToken: ${{ secrets.CHROMATIC_PROJECT_TOKEN }}
22+
23+
- name: Create comment PR
24+
uses: thollander/action-comment-pull-request@v1
25+
with:
26+
message: "storybook: ${{steps.chromatic.outputs.storybookUrl }}"

0 commit comments

Comments
 (0)