fix: create-tag script

This commit is contained in:
Innei
2021-10-15 23:14:26 +08:00
parent 3e48716f45
commit 6548555416

View File

@@ -1,4 +1,11 @@
set -e
BRANCH="$(git rev-parse --abbrev-ref HEAD)"
if [[ "$BRANCH" != "master" ]]; then
echo 'current branch not on master, abort'
exit 1
fi
tag=v$(json -f package.json version)
yarn changelog
git add .