Skip to content

Commit d670906

Browse files
siddharthkpSaraVieira
authored andcommitted
auto accept changes for master (codesandbox#3302)
1 parent 0a94d48 commit d670906

File tree

3 files changed

+38
-5
lines changed

3 files changed

+38
-5
lines changed

.circleci/config.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -197,7 +197,7 @@ commands:
197197
$BROWSER_STACK_KEY || true'
198198
background: true
199199
- run:
200-
command: npm run chromatic --exit-zero-on-changes
200+
command: yarn chromatic
201201
- run:
202202
name: Test Integrations
203203
command: |

packages/components/package.json

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,9 @@
2121
"start": "(yarn tsc --watch & yarn cpx \"src/**/*.{css,svg,png,jpg,woff,woff2}\" lib --watch)",
2222
"start:storybook": "start-storybook",
2323
"typecheck": "tsc --noEmit",
24-
"chromatic": "CHROMATIC_APP_CODE=nffds42ndde ./node_modules/.bin/chromatic --build-script-name=build:storybook --exit-zero-on-changes",
24+
"chromatic": "if-env CIRCLE_BRANCH=master && yarn chromatic:master || yarn chromatic:branch",
25+
"chromatic:master": "CHROMATIC_APP_CODE=nffds42ndde ./node_modules/.bin/chromatic --build-script-name=build:storybook --exit-zero-on-changes --auto-accept-changes",
26+
"chromatic:branch": "CHROMATIC_APP_CODE=nffds42ndde ./node_modules/.bin/chromatic --build-script-name=build:storybook --exit-zero-on-changes",
2527
"publish": "np"
2628
},
2729
"dependencies": {
@@ -51,6 +53,7 @@
5153
"@types/lodash": "^4.14.149",
5254
"@types/styled-components": "^4.4.1",
5355
"cpx": "^1.5.0",
56+
"if-env": "^1.0.4",
5457
"np": "^5.2.1",
5558
"rimraf": "^3.0.0",
5659
"storybook-chromatic": "^3.4.1",

yarn.lock

Lines changed: 33 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8025,7 +8025,7 @@ [email protected]:
80258025
core-js "^2.4.0"
80268026
regenerator-runtime "^0.10.0"
80278027

8028-
babel-polyfill@^6.16.0:
8028+
babel-polyfill@^6.16.0, babel-polyfill@^6.2.0:
80298029
version "6.26.0"
80308030
resolved "https://registry.yarnpkg.com/babel-polyfill/-/babel-polyfill-6.26.0.tgz#379937abc67d7895970adc621f284cd966cf2153"
80318031
dependencies:
@@ -12777,7 +12777,7 @@ event-source-polyfill@^1.0.5:
1277712777
resolved "https://registry.yarnpkg.com/event-source-polyfill/-/event-source-polyfill-1.0.8.tgz#a0d40fad813bf2ed2ccf3b7839f9d625768fc310"
1277812778
integrity sha512-wC9j5vjH9Xu9s8XhumgBoypdFJswraU1HXykqCCD/b7q+EH4P/avf5fM1e8IiHyHNZOeOiWwrki2775XFTYyeg==
1277912779

12780-
event-stream@^3.3.0, event-stream@~3.3.0:
12780+
event-stream@=3.3.4, event-stream@^3.3.0, event-stream@~3.3.0:
1278112781
version "3.3.4"
1278212782
resolved "http://registry.npmjs.org/event-stream/-/event-stream-3.3.4.tgz#4ab4c9a0f5a54db9338b4c34d86bfce8f4b35571"
1278312783
dependencies:
@@ -16516,6 +16516,13 @@ ieee754@^1.1.4:
1651616516
resolved "https://registry.yarnpkg.com/ieee754/-/ieee754-1.1.13.tgz#ec168558e95aa181fd87d37f55c32bbcb6708b84"
1651716517
integrity sha512-4vf7I2LYV/HaWerSo3XmlMkp5eZ83i+/CDluXi/IGTs/O1sejBNhTtnxzmRZfvOUqj7lZjqHkeTvpgSFDlWZTg==
1651816518

16519+
if-env@^1.0.4:
16520+
version "1.0.4"
16521+
resolved "https://registry.yarnpkg.com/if-env/-/if-env-1.0.4.tgz#8b2b6bd308af86a3a19bb273426761085104878b"
16522+
integrity sha1-iytr0wivhqOhm7JzQmdhCFEEh4s=
16523+
dependencies:
16524+
npm-run-all "1.4.0"
16525+
1651916526
iferr@^0.1.5:
1652016527
version "0.1.5"
1652116528
resolved "https://registry.yarnpkg.com/iferr/-/iferr-0.1.5.tgz#c60eed69e6d8fdb6b3104a1fcbca1c192dc5b501"
@@ -21591,6 +21598,17 @@ npm-registry-client@^7.0.1:
2159121598
optionalDependencies:
2159221599
npmlog "2 || ^3.1.0 || ^4.0.0"
2159321600

21601+
21602+
version "1.4.0"
21603+
resolved "https://registry.yarnpkg.com/npm-run-all/-/npm-run-all-1.4.0.tgz#a469bb9feabe5bf3aa9916833baf6776582e8948"
21604+
integrity sha1-pGm7n+q+W/OqmRaDO69ndlguiUg=
21605+
dependencies:
21606+
babel-polyfill "^6.2.0"
21607+
minimatch "^3.0.0"
21608+
ps-tree "^1.0.1"
21609+
shell-quote "^1.4.3"
21610+
which "^1.2.0"
21611+
2159421612
npm-run-path@^2.0.0:
2159521613
version "2.0.2"
2159621614
resolved "https://registry.yarnpkg.com/npm-run-path/-/npm-run-path-2.0.2.tgz#35a9232dfa35d7067b4cb2ddf2357b1871536c5f"
@@ -24592,6 +24610,13 @@ prr@~1.0.1:
2459224610
resolved "https://registry.yarnpkg.com/prr/-/prr-1.0.1.tgz#d3fc114ba06995a45ec6893f484ceb1d78f5f476"
2459324611
integrity sha1-0/wRS6BplaRexok/SEzrHXj19HY=
2459424612

24613+
ps-tree@^1.0.1:
24614+
version "1.2.0"
24615+
resolved "https://registry.yarnpkg.com/ps-tree/-/ps-tree-1.2.0.tgz#5e7425b89508736cdd4f2224d028f7bb3f722ebd"
24616+
integrity sha512-0VnamPPYHl4uaU/nSFeZZpR21QAWRz+sRv4iW9+v/GS/J5U5iZB5BNN6J0RMoOvdx2gWM2+ZFMIm58q24e4UYA==
24617+
dependencies:
24618+
event-stream "=3.3.4"
24619+
2459524620
ps-tree@^1.1.0:
2459624621
version "1.1.0"
2459724622
resolved "https://registry.yarnpkg.com/ps-tree/-/ps-tree-1.1.0.tgz#b421b24140d6203f1ed3c76996b4427b08e8c014"
@@ -27742,6 +27767,11 @@ [email protected], shell-quote@^1.6.1:
2774227767
array-reduce "~0.0.0"
2774327768
jsonify "~0.0.0"
2774427769

27770+
shell-quote@^1.4.3:
27771+
version "1.7.2"
27772+
resolved "https://registry.yarnpkg.com/shell-quote/-/shell-quote-1.7.2.tgz#67a7d02c76c9da24f99d20808fcaded0e0e04be2"
27773+
integrity sha512-mRz/m/JVscCrkMyPqHc/bczi3OQHkLTqXHEFu0zDhK/qfv3UcOA4SVmRCLmos4bhjr9ekVQubj/R7waKapmiQg==
27774+
2774527775
2774627776
version "0.7.6"
2774727777
resolved "https://registry.yarnpkg.com/shelljs/-/shelljs-0.7.6.tgz#379cccfb56b91c8601e4793356eb5382924de9ad"
@@ -31430,7 +31460,7 @@ which-pm-runs@^1.0.0:
3143031460
resolved "https://registry.yarnpkg.com/which-pm-runs/-/which-pm-runs-1.0.0.tgz#670b3afbc552e0b55df6b7780ca74615f23ad1cb"
3143131461
integrity sha1-Zws6+8VS4LVd9rd4DKdGFfI60cs=
3143231462

31433-
which@1, which@^1.2.10, which@^1.2.12, which@^1.2.14, which@^1.2.9, which@^1.3.0, which@^1.3.1:
31463+
which@1, which@^1.2.0, which@^1.2.10, which@^1.2.12, which@^1.2.14, which@^1.2.9, which@^1.3.0, which@^1.3.1:
3143431464
version "1.3.1"
3143531465
resolved "https://registry.yarnpkg.com/which/-/which-1.3.1.tgz#a45043d54f5805316da8d62f9f50918d3da70b0a"
3143631466
dependencies:

0 commit comments

Comments
 (0)