mirror of
https://github.com/nocobase/nocobase
synced 2024-11-14 21:55:55 +00:00
4fd8122c61
Some checks are pending
auto-merge / push-commit (push) Waiting to run
* docs: generate changelogs by prs * chore: add retry * chore: check * chore: update * chore: ci * fix: ci * fix: ci * fix: ci * fix: params * fix: token * fix: pro-plugins * chore: update
32 lines
1.1 KiB
Bash
Executable File
32 lines
1.1 KiB
Bash
Executable File
current_version=$(jq -r '.version' lerna.json)
|
|
IFS='.-' read -r major minor patch label <<< "$current_version"
|
|
|
|
if [ "$1" == '--is-feat' ]; then
|
|
new_version="$major.$minor.0-beta"
|
|
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
|
|
|
|
echo $PRO_PLUGIN_REPOS | jq -r '.[]' | while read i; do
|
|
cd ./packages/pro-plugins/@nocobase/$i
|
|
git add .
|
|
git commit -m "chore(versions): 😊 publish v$(jq -r '.version' ../../../../lerna.json)"
|
|
git tag v$(jq -r '.version' ../../../../lerna.json)
|
|
cd ../../../../
|
|
done
|
|
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)
|
|
#git push --atomic origin main v$(jq -r '.version' ../../lerna.json)
|
|
cd ../../
|
|
git add .
|
|
git commit -m "chore(versions): 😊 publish v$(jq -r '.version' lerna.json)"
|
|
git tag v$(jq -r '.version' lerna.json)
|
|
# git push --atomic origin main v$(jq -r '.version' lerna.json)
|