This commit is contained in:
Christien Rioux
2023-07-16 14:51:12 -04:00
parent 3ea78e4f58
commit dbd61a9255
4 changed files with 14 additions and 3 deletions

View File

@@ -3,11 +3,19 @@ set -e
if [ "$1" == "patch" ]; then
echo Bumping patch version
PART=patch
elif [ "$1" == "minor" ]; then
echo Bumping minor version
PART=minor
elif [ "$1" == "major" ]; then
echo Bumping major version
PART=major
else
echo Unsupported part! Specify 'patch', 'minor', or 'major'
exit 1
fi
cargo set-version --dry-run --bump $1
CARGO_TOMLS=$(find . -name Cargo.toml -not -path ./external/\* -not -path ./Cargo.toml | xargs)
bumpversion --dry-run $PART $CARGO_TOMLS ./veilid-python/pyproject.toml ./veilid-flutter/pubspec.yaml