build: nightly is nightly, beta is beta (#14133)

This commit is contained in:
Samuel Attard 2018-08-16 09:28:17 -07:00 committed by Shelley Vohr
parent 74426ad45e
commit d3067cc334

View file

@ -206,15 +206,15 @@ async function createRelease (branchToTarget, isBeta) {
githubOpts.name = `electron ${newVersion}` githubOpts.name = `electron ${newVersion}`
if (isBeta) { if (isBeta) {
if (versionType === 'nightly') { if (versionType === 'nightly') {
githubOpts.body = `Note: This is a beta release. Please file new issues ` +
`for any bugs you find in it.\n \n This release is published to npm ` +
`under the beta tag and can be installed via npm install electron@beta, ` +
`or npm i electron@${newVersion.substr(1)}.\n \n ${releaseNotes}`
} else {
githubOpts.body = `Note: This is a nightly release. Please file new issues ` + githubOpts.body = `Note: This is a nightly release. Please file new issues ` +
`for any bugs you find in it.\n \n This release is published to npm ` + `for any bugs you find in it.\n \n This release is published to npm ` +
`under the nightly tag and can be installed via npm install electron@nightly, ` + `under the nightly tag and can be installed via npm install electron@nightly, ` +
`or npm i electron@${newVersion.substr(1)}.\n \n ${releaseNotes}` `or npm i electron@${newVersion.substr(1)}.\n \n ${releaseNotes}`
} else {
githubOpts.body = `Note: This is a beta release. Please file new issues ` +
`for any bugs you find in it.\n \n This release is published to npm ` +
`under the beta tag and can be installed via npm install electron@beta, ` +
`or npm i electron@${newVersion.substr(1)}.\n \n ${releaseNotes}`
} }
githubOpts.name = `${githubOpts.name}` githubOpts.name = `${githubOpts.name}`
githubOpts.prerelease = true githubOpts.prerelease = true