Bump lerna.json only
This commit is contained in:
parent
3837c5c8f4
commit
7275600be9
|
@ -38,8 +38,4 @@ jobs:
|
||||||
# setup the username and email.
|
# setup the username and email.
|
||||||
git config --global user.name "Budibase Staging Release Bot"
|
git config --global user.name "Budibase Staging Release Bot"
|
||||||
git config --global user.email "<>"
|
git config --global user.email "<>"
|
||||||
lerna version prerelease --force-publish --no-push --y
|
./scripts/bumpLernaVersion.sh
|
||||||
git add lerna.json
|
|
||||||
git commit -m 'Update version'
|
|
||||||
git push
|
|
||||||
git push --tags
|
|
||||||
|
|
|
@ -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
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue