File tree Expand file tree Collapse file tree 2 files changed +13
-1
lines changed Expand file tree Collapse file tree 2 files changed +13
-1
lines changed Original file line number Diff line number Diff line change 104
104
"yargs" : " ^17.0.1"
105
105
},
106
106
"scripts" : {
107
- "prepare" : " gulp prepare && husky && playwright install --with-deps" ,
107
+ "prepare" : " gulp prepare && husky && node scripts/isCI.js || playwright install --with-deps" ,
108
108
"start" : " node server.js" ,
109
109
"start-public" : " node server.js --public" ,
110
110
"build" : " gulp build" ,
Original file line number Diff line number Diff line change
1
+ // Logic and values based on is-ci https://github.com/watson/is-ci/blob/master/bin.js
2
+ // which uses ci-info under the hood https://github.com/watson/ci-info/blob/master/index.js
3
+ // This just extracts the specific parts we need without adding more dependencies
4
+
5
+ const { env } = process ;
6
+
7
+ const isCI = ! ! (
8
+ env . CI !== "false" && // Bypass all checks if CI env is explicitly set to 'false'
9
+ env . CI // GitHub CI
10
+ ) ;
11
+
12
+ process . exit ( isCI ? 0 : 1 ) ;
You can’t perform that action at this time.
0 commit comments