19 lines
304 B
Bash
19 lines
304 B
Bash
|
#!/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
|
||
|
|
||
|
git add lerna.json
|
||
|
git commit -m "Bump version to $NEW_VERSION"
|
||
|
git tag v$NEW_VERSION
|
||
|
git push
|
||
|
git push --tags
|
||
|
|
||
|
|