chore: always target master for nightly release commitish

This commit is contained in:
Samuel Attard 2018-08-17 23:35:09 -07:00
parent ff7dfe4a11
commit c066a51bfe

View file

@ -180,7 +180,7 @@ async function createRelease (branchToTarget, isBeta) {
githubOpts.body = releaseNotes
}
githubOpts.tag_name = newVersion
githubOpts.target_commitish = branchToTarget
githubOpts.target_commitish = newVersion.indexOf('nightly') !== -1 ? 'master' : branchToTarget
console.log('creating release with github opts', githubOpts)
await github.repos.createRelease(githubOpts)
.catch(err => {