From 749eb11e589f4af75ddf98976984c87d44cceb06 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Stephan=20B=C3=B6nnemann?= Date: Tue, 21 Apr 2015 14:21:57 +0200 Subject: [PATCH] fix(pre): not running during `npm pack` --- bin/semantic-release.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/bin/semantic-release.js b/bin/semantic-release.js index 37fc2fff..c0d21dd0 100755 --- a/bin/semantic-release.js +++ b/bin/semantic-release.js @@ -30,7 +30,11 @@ if (~argv._.indexOf('pre')) { if (npmArgv['semantic-release-rerun']) process.exit(0) // the `prepublish` hook is also executed when the package is installed // in this case we abort the command and do nothing. - if (isAbbrev(npmArgv, 'install') || isAbbrev(npmArgv, 'link')) process.exit(0) + if ( + isAbbrev(npmArgv, 'install') || + isAbbrev(npmArgv, 'link') || + isAbbrev(npmArgv, 'pack') + ) process.exit(0) if (argv.debug) console.log('This is a dry run')