Skip to content

Commit 0451947

Browse files
committed
update chromatic commands to include 'autoAcceptChanges' flag
1 parent b4d36c6 commit 0451947

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

.github/workflows/chromatic.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,4 +19,5 @@ jobs:
1919
with:
2020
# 👇 Chromatic projectToken, refer to the manage page to obtain it.
2121
projectToken: ${{ secrets.CHROMATIC_PROJECT_TOKEN }}
22-
exitZeroOnChanges: true
22+
exitZeroOnChanges: true
23+
autoAcceptChanges: true

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@
120120
"storybook": "start-storybook -c .storybook -p 9009 --no-manager-cache",
121121
"build-storybook": "build-storybook -c .storybook -o storybook-static",
122122
"lint": "eslint \"+(.storybook|__stories__|__tests__|config|src)/**/*.{ts,js}\"",
123-
"chromatic": "chromatic --force-rebuild"
123+
"chromatic": "chromatic --force-rebuild --auto-accept-changes"
124124
},
125125
"dependencies": {
126126
"@babel/runtime": "^7.18.9"

0 commit comments

Comments
 (0)