Browse Source

fix jenkins

Daniel Zlotin 6 years ago
parent
commit
3839b83242
1 changed files with 2 additions and 2 deletions
  1. 2
    2
      scripts/release.js

+ 2
- 2
scripts/release.js View File

22
     throw new Error(`releasing is only available from CI`);
22
     throw new Error(`releasing is only available from CI`);
23
   }
23
   }
24
 
24
 
25
-  if (process.env.TRAVIS_PULL_REQUEST !== 'false') {
26
-    console.log(`not publishing as triggered by pull request ${process.env.TRAVIS_PULL_REQUEST}`);
25
+  if (!process.env.JENKINS_MASTER) {
26
+    console.log(`not publishing on a different build`);
27
     return false;
27
     return false;
28
   }
28
   }
29
 
29