File tree Expand file tree Collapse file tree 2 files changed +15
-2
lines changed
Expand file tree Collapse file tree 2 files changed +15
-2
lines changed Original file line number Diff line number Diff line change 11language : node_js
22node_js :
33 - " 12"
4+ cache : yarn
5+
6+ script :
7+ - export BRANCH=$(if [ "$TRAVIS_PULL_REQUEST" == "false" ]; then echo $TRAVIS_BRANCH; else echo $TRAVIS_PULL_REQUEST_BRANCH; fi)
8+ - yarn build
9+ - cd ./packages/docs
10+ - yarn install
11+ - if [ "$BRANCH" == "master" ];
12+ then
13+ yarn chromatic --auto-accept-changes;
14+ elif [[ $TRAVIS_EVENT_TYPE != 'pull_request' || $TRAVIS_PULL_REQUEST_SLUG != $TRAVIS_REPO_SLUG ]];
15+ then
16+ yarn chromatic;
17+ fi
Original file line number Diff line number Diff line change 1717 "dependencies" : {},
1818 "scripts" : {
1919 "storybook" : " start-storybook -p 6006" ,
20- "build-storybook" : " build-storybook" ,
21- "chromatic:rebase" : " chromatic --auto-accept-changes" ,
20+ "build-storybook" : " build-storybook --quiet" ,
2221 "chromatic" : " chromatic --exit-zero-on-changes"
2322 }
2423}
You can’t perform that action at this time.
0 commit comments