1
0
Fork 0
mirror of synced 2024-06-18 18:35:37 +12:00
budibase/scripts/versionCommit.sh
Martin McKeaveney 979883257e backmerge master
2023-07-19 17:11:15 +01:00

18 lines
356 B
Bash
Executable file

#!/bin/bash
if [ -z "$1" ]
then
echo "Error: bump type is required. Usage: $0 [major|minor|patch|prerelease]"
exit 1
fi
# Bump the version in lerna.json
node ./bumpVersion.js $1
NEW_VERSION=$(node -p "require('../lerna.json').version")
git add ../lerna.json
git commit -m "Bump version to $NEW_VERSION"
git tag $NEW_VERSION
git push
git push --tags