Skip to content

Commit 3395bcd

Browse files
committed
Add Chromatic action
1 parent 27428bb commit 3395bcd

File tree

1 file changed

+32
-0
lines changed

1 file changed

+32
-0
lines changed

.github/workflows/chromatic.yml

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
# Workflow name
2+
name: 'Chromatic'
3+
4+
# Event for the workflow
5+
on: push
6+
7+
# List of jobs
8+
jobs:
9+
chromatic-deployment:
10+
# Operating System
11+
runs-on: ubuntu-latest
12+
# Job steps
13+
steps:
14+
- run: git config --global core.autocrlf input
15+
- uses: actions/checkout@v3
16+
with:
17+
fetch-depth: 0
18+
19+
- uses: actions/setup-node@v3
20+
with:
21+
node-version: '14'
22+
cache: 'yarn'
23+
24+
- name: Install dependencies
25+
run: yarn
26+
# 👇 Adds Chromatic as a step in the workflow
27+
- name: Publish to Chromatic
28+
uses: chromaui/action@v1
29+
# Chromatic GitHub Action options
30+
with:
31+
# 👇 Chromatic projectToken, refer to the manage page to obtain it.
32+
projectToken: ${{ secrets.CHROMATIC_PROJECT_TOKEN }}

0 commit comments

Comments
 (0)