mirror of
https://github.com/Budibase/budibase.git
synced 2026-09-21 13:50:41 +08:00
20 lines
379 B
Bash
Executable File
20 lines
379 B
Bash
Executable File
#!/bin/bash
|
|
set -euo pipefail
|
|
|
|
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
|