Skip to content

Commit dbbecb5

Browse files
authored
ci: add chromatic GH action (#806)
1 parent 0d6857c commit dbbecb5

File tree

2 files changed

+24
-1
lines changed

2 files changed

+24
-1
lines changed

.github/workflows/chromatic.yml

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
name: "Chromatic"
2+
3+
on:
4+
push:
5+
branches: [master, "[0-9]*.[0-9]*"]
6+
workflow_call:
7+
8+
jobs:
9+
chromatic:
10+
runs-on: ubuntu-latest
11+
steps:
12+
- name: Checkout code
13+
uses: actions/checkout@v4
14+
with:
15+
fetch-depth: 0
16+
17+
- name: Install dependencies
18+
run: npm ci
19+
20+
- name: Publish to Chromatic
21+
uses: chromaui/action@latest
22+
with:
23+
projectToken: ${{ secrets.CHROMATIC_PROJECT_TOKEN }}

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@
132132
"check-circular-dependencies": "npx madge --circular --extensions js ./lib/build/",
133133
"storybook": "TEST_MODE=testing storybook dev -p 6006",
134134
"build-storybook": "TEST_MODE=testing storybook build",
135-
"chromatic": "npx chromatic --project-token=chpt_ca6c16f6b3fac1f"
135+
"chromatic": "npx chromatic"
136136
},
137137
"size-limit": [
138138
{

0 commit comments

Comments
 (0)