diff --git a/script/prepare-release.js b/script/prepare-release.js index 4ed7ded552ed..0d0d3b83d4d7 100755 --- a/script/prepare-release.js +++ b/script/prepare-release.js @@ -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 => {