Skip to content

Commit

Permalink
fix(release): skip running publishCommand if nullish (#793)
Browse files Browse the repository at this point in the history
  • Loading branch information
Eunjae Lee authored May 4, 2020
1 parent 74d36de commit eb62c8d
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions packages/shipjs/src/step/release/runPublish.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,12 @@ export default ({ isYarn, config, releaseTag: tag, dir, dryRun }) =>
tag,
dir: packageDir,
});
print(`Running the following at ${info(packageDir)}`);
run({ command, dir: packageDir, dryRun });
if (command) {
print(`Running the following at ${info(packageDir)}`);
run({ command, dir: packageDir, dryRun });
} else {
print(`No publish command for ${info(packageDir)}`);
}
});
} else {
const command = getPublishCommand({ isYarn, publishCommand, tag, dir });
Expand Down

0 comments on commit eb62c8d

Please sign in to comment.