Skip to content

Commit

Permalink
fix(trigger): fix a bug it threw an exception at finished step (#581)
Browse files Browse the repository at this point in the history
* fix(trigger): fix a bug it threw an exception at `finished` step

* fix: wrong import paths
  • Loading branch information
Eunjae Lee authored Dec 31, 2019
1 parent a32c8dc commit eb60e56
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 4 deletions.
2 changes: 1 addition & 1 deletion packages/shipjs/src/flow/prepare.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ import createPullRequest from '../step/prepare/createPullRequest';
import notifyPrepared from '../step/prepare/notifyPrepared';
import pushToStagingBranch from '../step/prepare/pushToStagingBranch';
import checkGitHubToken from '../step/checkGitHubToken';
import finished from '../step/finished';
import finished from '../step/prepare/finished';

import { print } from '../util';
import { warning } from '../color';
Expand Down
2 changes: 1 addition & 1 deletion packages/shipjs/src/flow/release.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ import gitPush from '../step/release/gitPush';
import createGitHubRelease from '../step/release/createGitHubRelease';
import notifyReleaseSuccess from '../step/release/notifyReleaseSuccess';
import checkGitHubToken from '../step/checkGitHubToken';
import finished from '../step/finished';
import finished from '../step/release/finished';
import { detectYarn } from '../util';

async function release({ help = false, dir = '.', dryRun = false }) {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import chalk from 'chalk';
import runStep from './runStep';
import { print } from '../util';
import runStep from '../runStep';
import { print } from '../../util';

export default ({ baseBranch, stagingBranch, pullRequestUrl, dryRun }) =>
runStep({ title: 'All Finished.' }, () => {
Expand Down
3 changes: 3 additions & 0 deletions packages/shipjs/src/step/release/finished.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
import runStep from '../runStep';

export default () => runStep({ title: 'All Finished.' }, () => {});

0 comments on commit eb60e56

Please sign in to comment.