2024-06-12 03:37:23 +00:00
|
|
|
current_version=$(jq -r '.version' lerna.json)
|
2024-11-06 03:07:01 +00:00
|
|
|
IFS='.-' read -r major minor patch label pre <<< "$current_version"
|
2024-06-12 03:37:23 +00:00
|
|
|
|
2024-11-06 03:07:01 +00:00
|
|
|
if [ "$label" == 'beta' ]; then
|
|
|
|
if [ "$1" == '--is-feat' ]; then
|
|
|
|
new_minor=$((minor + 1))
|
|
|
|
new_version="$major.$new_minor.0-beta"
|
2024-06-12 03:37:23 +00:00
|
|
|
echo $new_version;
|
2024-11-06 03:07:01 +00:00
|
|
|
else
|
2024-06-12 03:37:23 +00:00
|
|
|
new_patch=$((patch + 1))
|
|
|
|
new_version="$major.$minor.$new_patch-$label"
|
|
|
|
echo $new_version;
|
2024-11-06 03:07:01 +00:00
|
|
|
fi
|
|
|
|
else
|
|
|
|
# alpha
|
|
|
|
if [ "$1" == '--is-feat' ]; then
|
|
|
|
new_minor=$((minor + 1))
|
|
|
|
new_version="$major.$new_minor.0-alpha.0"
|
|
|
|
echo $new_version;
|
|
|
|
else
|
|
|
|
if [ -z "$pre" ]; then
|
|
|
|
new_version="$major.$minor.$patch-alpha.0"
|
|
|
|
echo $new_version;
|
|
|
|
else
|
|
|
|
new_pre=$((pre + 1))
|
|
|
|
new_version="$major.$minor.$patch-alpha.$new_pre"
|
|
|
|
echo $new_version;
|
|
|
|
fi
|
|
|
|
fi
|
2024-06-12 03:37:23 +00:00
|
|
|
fi
|
|
|
|
|
|
|
|
lerna version $new_version --preid alpha --force-publish=* --no-git-tag-version -y
|
|
|
|
|
2024-08-26 15:40:48 +00:00
|
|
|
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
|
2024-09-04 04:58:51 +00:00
|
|
|
echo $CUSTOM_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
|
2024-05-07 08:57:18 +00: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 07:42:08 +00:00
|
|
|
#git push --atomic origin main v$(jq -r '.version' ../../lerna.json)
|
2024-05-07 08:57:18 +00:00
|
|
|
cd ../../
|
2023-09-13 10:29:38 +00:00
|
|
|
git add .
|
|
|
|
git commit -m "chore(versions): 😊 publish v$(jq -r '.version' lerna.json)"
|
|
|
|
git tag v$(jq -r '.version' lerna.json)
|
2024-06-12 03:37:23 +00:00
|
|
|
# git push --atomic origin main v$(jq -r '.version' lerna.json)
|
2024-11-06 03:07:01 +00:00
|
|
|
|