Skip to content

Commit 77bb4d9

Browse files
committed
add chromatic to ci
1 parent c6a1af5 commit 77bb4d9

File tree

3 files changed

+38
-6
lines changed

3 files changed

+38
-6
lines changed

.github/workflows/ci.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,11 @@ jobs:
5555
name: coverage-report
5656
path: coverage
5757

58+
- name: Run Chromatic
59+
run: npm run chromatic
60+
env:
61+
CHROMATIC_PROJECT_TOKEN: ${{ secrets.CHROMATIC_PROJECT_TOKEN }}
62+
5863
- name: Check if version changed
5964
id: check_version
6065
shell: pwsh

package-lock.json

Lines changed: 30 additions & 5 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,8 @@
1919
"lint": "eslint --ext .ts,.tsx .",
2020
"storybook": "storybook dev -p 6006",
2121
"build-storybook": "storybook build",
22-
"test": "vitest --coverage"
22+
"test": "vitest --coverage",
23+
"chromatic": "npx chromatic"
2324
},
2425
"devDependencies": {
2526
"@chromatic-com/storybook": "^3.2.2",
@@ -54,6 +55,7 @@
5455
"@vitejs/plugin-react": "^4.3.4",
5556
"@vitest/coverage-v8": "^3.0.9",
5657
"autoprefixer": "^10.4.20",
58+
"chromatic": "^12.0.0",
5759
"dotenv": "^16.4.5",
5860
"electron": "35.1.2",
5961
"eslint": "^9.23.0",

0 commit comments

Comments
 (0)