From 54fe414bab9fa8247150ca2bf2f8451142cbf4cc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Stephan=20B=C3=B6nnemann?= Date: Sun, 8 Feb 2015 10:50:13 +0100 Subject: [PATCH] fix(cli): `prepublish` is executed on `link`; does nothing then --- bin/semantic-release | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/semantic-release b/bin/semantic-release index 25c86f21..8d768535 100755 --- a/bin/semantic-release +++ b/bin/semantic-release @@ -31,7 +31,7 @@ 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')) process.exit(0) + if (isAbbrev(npmArgv, 'install') || isAbbrev(npmArgv, 'link')) process.exit(0) if (argv.debug) console.log('This is a dry run')