Browse Source

chore: always target master for nightly release commitish

Samuel Attard 6 years ago
parent
commit
c066a51bfe
1 changed files with 1 additions and 1 deletions
  1. 1 1
      script/prepare-release.js

+ 1 - 1
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 => {