提交 1655be54 编写于 作者: Huan (李卓桓)'s avatar Huan (李卓桓)

pre-push with the right npm version tagged

上级 e4fcf2c2
......@@ -7,6 +7,19 @@
#
# To enable this hook, rename this file to "pre-commit".
set -e
[ -n "WECHATY_INNER_PRE_HOOK" ] && {
# http://stackoverflow.com/a/21334985/1123955
exit 0
}
npm run lint
[ -z "$CYGWIN" ] && npm version patch
# npm --no-git-tag-version version patch || true
[ -z "$CYGWIN" ] && {
npm version patch
WECHATY_INNER_PRE_HOOK=1 git push
echo "Npm verion bumped and pushed by inner push inside hook pre-push"
echo "outer push will be canceled, never mind."
exit 127
}
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册