Skip to content

Commit

Permalink
fix(deployment): Publishing always fails on circleci #1303 (#1304)
Browse files Browse the repository at this point in the history
Close #1303
  • Loading branch information
arekkas authored and develar committed Feb 25, 2017
1 parent f137193 commit 81b7e46
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/electron-builder/src/publish/PublishManager.ts
Original file line number Diff line number Diff line change
Expand Up @@ -401,8 +401,8 @@ function sha256(file: string) {
function isPullRequest() {
// 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.
function isSet(value: string) {
return value != null && value !== "false"
return value && value !== "false"
}

return isSet(process.env.TRAVIS_PULL_REQUEST) || isSet(process.env.CI_PULL_REQUEST) || isSet(process.env.CI_PULL_REQUESTS)
}
}

0 comments on commit 81b7e46

Please sign in to comment.