chore: always target master for nightly releases (#14190)

This commit is contained in:
Samuel Attard
2018-08-18 09:21:38 -07:00
committed by Shelley Vohr
parent 8039bdc061
commit 8f23fe8ab0

View File

@@ -179,7 +179,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
await github.repos.createRelease(githubOpts)
.catch(err => {
console.log(`${fail} Error creating new release: `, err)