diff --git a/.husky/prepare-commit-msg b/.husky/prepare-commit-msg index 804064125..fb62484ba 100755 --- a/.husky/prepare-commit-msg +++ b/.husky/prepare-commit-msg @@ -1,4 +1,6 @@ #!/usr/bin/env sh . "$(dirname -- "$0")/_/husky.sh" -exec < /dev/tty && yarn cz --hook || true +if [ "$NO_HOOK" != "1" ]; then + exec < /dev/tty && yarn cz --hook || true +fi diff --git a/package.json b/package.json index ae6ab2cd3..480e4f9ab 100644 --- a/package.json +++ b/package.json @@ -15,7 +15,7 @@ "test:library": "jest packages/${0}", "test:circuits": "yarn workspace @zk-kit/circuits test", "test:contracts": "yarn workspace imt.sol test:coverage", - "version:bump": "yarn workspace @zk-kit/${0} version ${1} && git commit -am \"chore(${0}): v${1}\" && git tag ${0}-v${1}", + "version:bump": "yarn workspace @zk-kit/${0} version ${1} && NO_HOOK=1 git commit -m \"chore(${0}): v${1}\" && git tag ${0}-v${1}", "version:publish": "yarn workspaces foreach -A --no-private npm publish --tolerate-republish --access public", "version:release": "changelogithub", "lint": "eslint . --ext .js,.ts && yarn workspace imt.sol lint",