diff --git a/CHANGELOG.md b/CHANGELOG.md index c32f41e8d..eb3c383c6 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,18 @@ +## [1.2.1](https://github.com/nx-space/core/compare/v1.2.0...v1.2.1) (2022-07-09) + + +### Bug Fixes + +* **deps:** bump passport version to 0.6.0 ([8539464](https://github.com/nx-space/core/commit/8539464bdf3fbde25ab67f2056854471f60a525a)) +* **pnpm:** update lock file ([40a4402](https://github.com/nx-space/core/commit/40a4402b3eb733f725d06b5a54e9083fe938c34b)) + + +### Features + +* **module:** aggregate module ([92e3841](https://github.com/nx-space/core/commit/92e384135e2fddada57d327a2ebf4aa8e9d5fc68)) + + + ## v1.2.0 (2022-07-03) ### Feat diff --git a/package.json b/package.json index a0b12906c..3c8b666de 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@nx-space/core", - "version": "1.0.0", + "version": "1.2.1", "description": "", "author": "Wibus ", "private": true, diff --git a/scripts/create-tags.sh b/scripts/create-tags.sh index 6cea2fe1d..96a3c7125 100644 --- a/scripts/create-tags.sh +++ b/scripts/create-tags.sh @@ -1,12 +1,13 @@ set -e BRANCH="$(git rev-parse --abbrev-ref HEAD)" -if [[ "$BRANCH" != "master" ]]; then - echo 'current branch not on master, abort' +if [[ "$BRANCH" != "main" ]]; then + echo 'current branch not on main, abort' exit 1 fi -tag=v$(json -f package.json version) +# 获取package.json的版本号 +tags="$(node -p "require('./package.json').version")" yarn changelog git add . git commit -a -m "release: $tag" &>/dev/null