1
0
Fork 0
mirror of synced 2024-09-29 08:41:16 +13:00

Bump lerna.json only

This commit is contained in:
adrinr 2023-04-20 14:09:37 +01:00
parent 3837c5c8f4
commit 7275600be9
2 changed files with 16 additions and 5 deletions

View file

@ -38,8 +38,4 @@ jobs:
# setup the username and email.
git config --global user.name "Budibase Staging Release Bot"
git config --global user.email "<>"
lerna version prerelease --force-publish --no-push --y
git add lerna.json
git commit -m 'Update version'
git push
git push --tags
./scripts/bumpLernaVersion.sh

15
scripts/bumpLernaVersion.sh Executable file
View file

@ -0,0 +1,15 @@
#!/bin/bash
# Bump the version in lerna.json
CURRENT_VERSION=$(node -p "require('./lerna.json').version")
NEW_VERSION=$(echo $CURRENT_VERSION | awk -F. -v OFS=. '{++$NF; print}')
sed -i '' "s/\"version\": \"$CURRENT_VERSION\"/\"version\": \"$NEW_VERSION\"/" lerna.json
lerna version prerelease --no-git-tag-version --force-publish --no-push --y
git add lerna.json
git commit -m "Bump version to $NEW_VERSION"
git tag $NEW_VERSION
git push
git push --tags