1
0
Fork 0
mirror of synced 2024-07-07 15:25:52 +12:00
budibase/scripts/versionCommit.sh
2023-04-24 20:01:58 +01:00

18 lines
359 B
Bash
Executable file

#!/bin/bash
if [ -z "$1" ]
then
echo "Error: version number is required. Usage: $0 [major|minor|patch|alpha]"
exit 1
fi
# Bump the version in lerna.json
node scripts/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 v$NEW_VERSION
git push
git push --tags