Skip to content

Commit

Permalink
fix(pre): not running during npm pack
Browse files Browse the repository at this point in the history
  • Loading branch information
boennemann committed Apr 21, 2015
1 parent 36f5555 commit 749eb11
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion bin/semantic-release.js
Expand Up @@ -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')

Expand Down

0 comments on commit 749eb11

Please sign in to comment.