File tree Expand file tree Collapse file tree 1 file changed +15
-13
lines changed
Expand file tree Collapse file tree 1 file changed +15
-13
lines changed Original file line number Diff line number Diff line change @@ -15,22 +15,24 @@ exports.name = null
1515exports . isPR = null
1616exports . id = null
1717
18- vendors . forEach ( function ( vendor ) {
19- const envs = Array . isArray ( vendor . env ) ? vendor . env : [ vendor . env ]
20- const isCI = envs . every ( function ( obj ) {
21- return checkEnv ( obj )
22- } )
18+ if ( env . CI !== 'false' ) {
19+ vendors . forEach ( function ( vendor ) {
20+ const envs = Array . isArray ( vendor . env ) ? vendor . env : [ vendor . env ]
21+ const isCI = envs . every ( function ( obj ) {
22+ return checkEnv ( obj )
23+ } )
2324
24- exports [ vendor . constant ] = isCI
25+ exports [ vendor . constant ] = isCI
2526
26- if ( ! isCI ) {
27- return
28- }
27+ if ( ! isCI ) {
28+ return
29+ }
2930
30- exports . name = vendor . name
31- exports . isPR = checkPR ( vendor )
32- exports . id = vendor . constant
33- } )
31+ exports . name = vendor . name
32+ exports . isPR = checkPR ( vendor )
33+ exports . id = vendor . constant
34+ } )
35+ }
3436
3537exports . isCI = ! ! (
3638 env . CI !== 'false' && // Bypass all checks if CI env is explicitly set to 'false'
You can’t perform that action at this time.
0 commit comments