Skip to content

Commit 946d16d

Browse files
committed
Make mergeProposalBranch asynchronous
1 parent 42a9d9f commit 946d16d

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

lib/promote_release.js

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,7 @@ class ReleasePromotion {
151151
const keyPath = await cli.prompt(
152152
`Please enter the path to your ssh key (Default ${defaultKeyPath}): `,
153153
{ questionType: 'input', defaultAnswer: defaultKeyPath });
154-
await this.promoteAndSignRelease(keyPath);
154+
this.promoteAndSignRelease(keyPath);
155155

156156
cli.separator();
157157
cli.ok(`Release promotion for ${version} complete.\n`);
@@ -298,12 +298,12 @@ class ReleasePromotion {
298298
const releaseBranch = `v${versionComponents.major}.x`;
299299
const proposalBranch = `v${version}-proposal`;
300300

301-
runSync('git', ['checkout', releaseBranch]);
302-
runSync('git', ['merge', '--ff-only', proposalBranch]);
303-
runSync('git', ['push', 'upstream', releaseBranch]);
304-
runSync('git', ['checkout', stagingBranch]);
305-
runSync('git', ['rebase', releaseBranch]);
306-
runSync('git', ['push', 'upstream', stagingBranch]);
301+
await runAsync('git', ['checkout', releaseBranch]);
302+
await runAsync('git', ['merge', '--ff-only', proposalBranch]);
303+
await runAsync('git', ['push', 'upstream', releaseBranch]);
304+
await runAsync('git', ['checkout', stagingBranch]);
305+
await runAsync('git', ['rebase', releaseBranch]);
306+
await runAsync('git', ['push', 'upstream', stagingBranch]);
307307
}
308308

309309
pushReleaseTag() {
@@ -321,7 +321,7 @@ class ReleasePromotion {
321321
// Since we've committed the Working On commit, the release
322322
// commit will be 1 removed from tip-of-tree (e.g HEAD~1).
323323
const releaseCommitSha = this.getCommitSha(1);
324-
runSync('git', ['checkout', 'master']);
324+
runAsync('git', ['checkout', 'master']);
325325

326326
// Pull master from upstream, in case it's not up-to-date.
327327
runSync('git', ['pull', '--rebase', 'upstream', 'master']);

0 commit comments

Comments
 (0)