|
@@ -22,8 +22,8 @@ function validateEnv() {
|
22
|
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
|
27
|
return false;
|
28
|
28
|
}
|
29
|
29
|
|