Skip to content

Commit

Permalink
release:
Browse files Browse the repository at this point in the history
  • Loading branch information
wibus-wee committed Jul 9, 2022
1 parent 40a4402 commit 9988a8b
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 4 deletions.
15 changes: 15 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@nx-space/core",
"version": "1.0.0",
"version": "1.2.1",
"description": "",
"author": "Wibus <https://iucky.cn>",
"private": true,
Expand Down
7 changes: 4 additions & 3 deletions scripts/create-tags.sh
Original file line number Diff line number Diff line change
@@ -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
Expand Down

0 comments on commit 9988a8b

Please sign in to comment.