mirror of
https://github.com/nocobase/nocobase
synced 2024-11-15 09:38:51 +00:00
c069fbebd4
* feat(publish): publish pro repos * feat: use app token * chore: add trigger branch * chore: ref main * chore: add owner * chore: change owner * chore: set repos * chore: get repo name * chore: update * chore: update * chore: update * chore: update * chore: update branch * fix: bug * fix: bug * fix: private key * feat: encrypt github app token * fix: bug * fix: token * fix: output * fix: base64 * fix: error * fix: token cut * fix: base64 * fix: repo name * chore: print token * chore: skip token revoke * fix: clone * fix: clone * fix: job * chore: shell bash * fix: ignore * fix: ignore * fix: invalid * fix: branch * fix: bug * fix: jq * fix: jq * fix: jq * fix: remove quotes * fix: directory * fix: directory * chore: update * chore: update * fix: invalid * fix: branch
35 lines
1.2 KiB
Bash
Executable File
35 lines
1.2 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)
|
|
yarn changelog --breaking-pattern "BREAKING CHANGE:"
|
|
git add .
|
|
git commit -m "chore: update changelog"
|
|
# git push --atomic origin main v$(jq -r '.version' lerna.json)
|