diff --git a/script/prepare-release.js b/script/prepare-release.js index dcae3bffce46..088b124d3624 100755 --- a/script/prepare-release.js +++ b/script/prepare-release.js @@ -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)