diff --git a/CHANGELOG.md b/CHANGELOG.md index c958294f3..e208ef038 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,7 @@ +## [0.3.6](https://github.com/wibus-wee/nx-server/compare/v0.3.5...v0.3.6) (2022-05-22) + + + ## [0.3.6](https://github.com/wibus-wee/nx-server/compare/v0.3.4...v0.3.6) (2022-05-22) diff --git a/scripts/createTag.sh b/scripts/createTag.sh index 2020aec51..3c668106e 100644 --- a/scripts/createTag.sh +++ b/scripts/createTag.sh @@ -14,7 +14,7 @@ if [[ "$BRANCH" != "main" ]]; then exit 1 fi -tag=v"$(cat package.json | grep version | head -1 | awk -F: '{ print $2 }' | sed 's/[",]//g' | tr -d '[[:space:]]')" + # 现在的GIT tag CURRENT_TAG="$(git describe --tags --abbrev=0)" @@ -23,7 +23,7 @@ echo "current tag: $CURRENT_TAG" # 使用 read 命令 获取co read -p "commit message: " COMMIT_MES read -p "NEW TAGS? (y/n): " NEW_TAG - +tag=v"$(cat package.json | grep version | head -1 | awk -F: '{ print $2 }' | sed 's/[",]//g' | tr -d '[[:space:]]')" yarn changelog git add . if [[ -z "$COMMIT_MES" ]]; then