Skip to content

Commit

Permalink
chore(lerna): add --no-commit-hooks on version scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
tutods committed Aug 9, 2023
1 parent 8fbcd5d commit 1bcf52d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 10 deletions.
9 changes: 1 addition & 8 deletions .husky/prepare-commit-msg
Original file line number Diff line number Diff line change
@@ -1,11 +1,4 @@
#!/usr/bin/env sh
. "$(dirname -- "$0")/_/husky.sh"

# exec < /dev/tty && node_modules/.bin/cz --hook || true
#exec < /dev/tty && node_modules/.bin/cz --hook || true

echo "$2"
if [ "$2" != "message" ];then
# exec < /dev/tty && node_modules/.bin/cz --hook "$1" "$2" "$3" || true
exec < /dev/tty && node_modules/.bin/cz --hook || true
fi
exec < /dev/tty && node_modules/.bin/cz --hook || true
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,9 @@
"prepare": "husky install",
"format": "prettier --write ./packages **/*.md **/*.json",
"lint": "eslint --ext .js --ignore-path .gitignore",
"preversion:stable": "lerna version --conventional-graduate --yes --message \"chore(stable version): publish\"",
"preversion:stable": "lerna version --conventional-graduate --yes --no-commit-hooks --message \"chore(stable version): publish\"",
"version:stable": "lerna publish from-git --yes",
"preversion:beta": "lerna version --conventional-prerelease --preid beta --yes --message \"chore(beta version): publish\"",
"preversion:beta": "lerna version --conventional-prerelease --preid beta --yes --no-commit-hooks --message \"chore(beta version): publish\"",
"version:beta": "lerna publish from-git --canary --yes"
},
"devDependencies": {
Expand Down

0 comments on commit 1bcf52d

Please sign in to comment.