2024-06-12 11:37:23 +08:00
|
|
|
current_version=$(jq -r '.version' lerna.json)
|
|
|
|
IFS='.-' read -r major minor patch label <<< "$current_version"
|
|
|
|
|
|
|
|
if [ "$1" == '--is-feat' ]; then
|
|
|
|
new_minor=$((minor + 1))
|
|
|
|
new_version="$major.$new_minor.0-$label"
|
|
|
|
echo $new_version;
|
|
|
|
else
|
|
|
|
new_patch=$((patch + 1))
|
|
|
|
new_version="$major.$minor.$new_patch-$label"
|
|
|
|
echo $new_version;
|
|
|
|
fi
|
|
|
|
|
|
|
|
lerna version $new_version --preid alpha --force-publish=* --no-git-tag-version -y
|
|
|
|
|
2024-05-07 16:57:18 +08:00
|
|
|
cd ./packages/pro-plugins
|
|
|
|
git add .
|
|
|
|
git commit -m "chore(versions): 😊 publish v$(jq -r '.version' ../../lerna.json)"
|
|
|
|
git tag v$(jq -r '.version' ../../lerna.json)
|
2024-05-09 15:42:08 +08:00
|
|
|
#git push --atomic origin main v$(jq -r '.version' ../../lerna.json)
|
2024-05-07 16:57:18 +08:00
|
|
|
cd ../../
|
2023-09-13 18:29:38 +08:00
|
|
|
git add .
|
|
|
|
git commit -m "chore(versions): 😊 publish v$(jq -r '.version' lerna.json)"
|
|
|
|
git tag v$(jq -r '.version' lerna.json)
|
2023-11-01 09:52:19 +08:00
|
|
|
yarn changelog --breaking-pattern "BREAKING CHANGE:"
|
|
|
|
git add .
|
|
|
|
git commit -m "chore: update changelog"
|
2024-06-12 11:37:23 +08:00
|
|
|
# git push --atomic origin main v$(jq -r '.version' lerna.json)
|