|
@@ -158,9 +158,10 @@ async function pushRelease (branch) {
|
|
|
}
|
|
|
}
|
|
|
|
|
|
-async function runReleaseBuilds (branch) {
|
|
|
+async function runReleaseBuilds (branch, newVersion) {
|
|
|
await ciReleaseBuild(branch, {
|
|
|
- ghRelease: true
|
|
|
+ ghRelease: true,
|
|
|
+ newVersion
|
|
|
});
|
|
|
}
|
|
|
|
|
@@ -190,6 +191,8 @@ async function verifyNewVersion () {
|
|
|
console.log(`${fail} Aborting release of ${newVersion}`);
|
|
|
process.exit();
|
|
|
}
|
|
|
+
|
|
|
+ return newVersion;
|
|
|
}
|
|
|
|
|
|
async function promptForVersion (version) {
|
|
@@ -225,10 +228,10 @@ async function prepareRelease (isBeta, notesOnly) {
|
|
|
} else {
|
|
|
const changes = await changesToRelease();
|
|
|
if (changes) {
|
|
|
- await verifyNewVersion();
|
|
|
+ const newVersion = await verifyNewVersion();
|
|
|
await createRelease(currentBranch, isBeta);
|
|
|
await pushRelease(currentBranch);
|
|
|
- await runReleaseBuilds(currentBranch);
|
|
|
+ await runReleaseBuilds(currentBranch, newVersion);
|
|
|
} else {
|
|
|
console.log('There are no new changes to this branch since the last release, aborting release.');
|
|
|
process.exit(1);
|