Skip to content

Commit

Permalink
fix: run release script asynchronously
Browse files Browse the repository at this point in the history
  • Loading branch information
codebytere committed May 4, 2020
1 parent 6686d07 commit 42a9d9f
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions lib/promote_release.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ const { promises: fs } = require('fs');
const semver = require('semver');

const { getMergedConfig } = require('./config');
const { runSync } = require('./run');
const { runSync, runAsync } = require('./run');
const auth = require('./auth');
const PRData = require('./pr_data');
const PRChecker = require('./pr_checker');
Expand Down Expand Up @@ -151,7 +151,7 @@ class ReleasePromotion {
const keyPath = await cli.prompt(
`Please enter the path to your ssh key (Default ${defaultKeyPath}): `,
{ questionType: 'input', defaultAnswer: defaultKeyPath });
this.promoteAndSignRelease(keyPath);
await this.promoteAndSignRelease(keyPath);

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

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

cherryPickToMaster() {
Expand Down

0 comments on commit 42a9d9f

Please sign in to comment.