Skip to content

Commit 81b7e46

Browse files
arekkasdevelar
authored andcommitted
fix(deployment): Publishing always fails on circleci #1303 (#1304)
Close #1303
1 parent f137193 commit 81b7e46

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/electron-builder/src/publish/PublishManager.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -401,8 +401,8 @@ function sha256(file: string) {
401401
function isPullRequest() {
402402
// TRAVIS_PULL_REQUEST is set to the pull request number if the current job is a pull request build, or false if it’s not.
403403
function isSet(value: string) {
404-
return value != null && value !== "false"
404+
return value && value !== "false"
405405
}
406406

407407
return isSet(process.env.TRAVIS_PULL_REQUEST) || isSet(process.env.CI_PULL_REQUEST) || isSet(process.env.CI_PULL_REQUESTS)
408-
}
408+
}

0 commit comments

Comments
 (0)