Skip to content

Commit afe4e61

Browse files
chore: always target master for nightly releases (electron#14190) (electron#14202)
1 parent 74d90fb commit afe4e61

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

script/prepare-release.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -179,7 +179,7 @@ async function createRelease (branchToTarget, isBeta) {
179179
githubOpts.body = releaseNotes
180180
}
181181
githubOpts.tag_name = newVersion
182-
githubOpts.target_commitish = branchToTarget
182+
githubOpts.target_commitish = newVersion.indexOf('nightly') !== -1 ? 'master' : branchToTarget
183183
await github.repos.createRelease(githubOpts)
184184
.catch(err => {
185185
console.log(`${fail} Error creating new release: `, err)

0 commit comments

Comments
 (0)