Skip to content

Commit 42a9d9f

Browse files
committed
fix: run release script asynchronously
1 parent 6686d07 commit 42a9d9f

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

lib/promote_release.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ const { promises: fs } = require('fs');
55
const semver = require('semver');
66

77
const { getMergedConfig } = require('./config');
8-
const { runSync } = require('./run');
8+
const { runSync, runAsync } = require('./run');
99
const auth = require('./auth');
1010
const PRData = require('./pr_data');
1111
const PRChecker = require('./pr_checker');
@@ -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-
this.promoteAndSignRelease(keyPath);
154+
await this.promoteAndSignRelease(keyPath);
155155

156156
cli.separator();
157157
cli.ok(`Release promotion for ${version} complete.\n`);
@@ -313,8 +313,8 @@ class ReleasePromotion {
313313
return runSync('git', ['push', 'upstream', tagVersion]);
314314
}
315315

316-
promoteAndSignRelease(keyPath) {
317-
return runSync('./tools/release.sh', ['-i', keyPath]);
316+
async promoteAndSignRelease(keyPath) {
317+
await runAsync('./tools/release.sh', ['-i', keyPath]);
318318
}
319319

320320
cherryPickToMaster() {

0 commit comments

Comments
 (0)