Skip to content

Commit

Permalink
fix(release): abort semantic release when submitting release pr
Browse files Browse the repository at this point in the history
  • Loading branch information
marionebl committed Dec 1, 2015
1 parent 1a05cee commit 9d53b4f
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions source/scripts/release-pull-request.js
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,12 @@ async function main() {
base,
head
});

console.log(` ${chalk.green('✔')} submitted pull request "${title}" via oauth`);
console.log(` ${chalk.green('✔')} Exiting with code 1 to prevent semantic-release from publishing`);
const timestamp = chalk.gray(` [${Date.now() - start}ms]`);
console.log(` ${chalk.green('✔')} release-pull-request successfully. ${timestamp}\n`);
process.exit(1);
} catch (err) {
console.error(` ${chalk.red('✖')} pull request "${title}" failed`);
console.log(` ${chalk.gray('⧗')} deleting branch "${head}"`);
Expand Down

0 comments on commit 9d53b4f

Please sign in to comment.