diff --git a/.husky/prepare-commit-msg b/.husky/prepare-commit-msg index 940eefd0..f582946b 100755 --- a/.husky/prepare-commit-msg +++ b/.husky/prepare-commit-msg @@ -1,4 +1,6 @@ #!/bin/sh . "$(dirname -- "$0")/_/husky.sh" -exec < /dev/tty && yarn git-cz --hook || true +[ -z "${SKIP_BY_SEMANTIC_RELEASE}" ] && { + exec < /dev/tty && yarn git-cz --hook +} || true diff --git a/package.json b/package.json index 9597566f..9619b4b8 100644 --- a/package.json +++ b/package.json @@ -31,7 +31,7 @@ "test:cli:watch": "jest --watch __tests__/cli/**/*.test.ts", "test:components": "jest __tests__/components/**/*.test.tsx", "test:components:watch": "jest --watch __tests__/components/**/*.test.tsx", - "semantic-release": "semantic-release" + "semantic-release": "SKIP_BY_SEMANTIC_RELEASE=true semantic-release" }, "lint-staged": { "*.{ts,tsx}": [