Skip to content

Commit 0cf6c2c

Browse files
committed
github action script
1 parent 9d3cb96 commit 0cf6c2c

File tree

1 file changed

+22
-0
lines changed

1 file changed

+22
-0
lines changed

.github/workflows/chromatic.yml

+22
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
# Workflow name
2+
name: "Chromatic Deployment"
3+
4+
# Event for the workflow
5+
on: push
6+
7+
# List of jobs
8+
jobs:
9+
test:
10+
# Operating System
11+
runs-on: ubuntu-latest
12+
# Job steps
13+
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
19+
with:
20+
#👇 Chromatic projectToken, see https://storybook.js.org/tutorials/intro-to-storybook/vue/en/deploy/ to obtain it
21+
projectToken: ${{ secrets.CHROMATIC_PROJECT_TOKEN }}
22+
token: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)