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

@ -1,3 +1,6 @@
[bumpversion]
current_version = 0.1.0
[bumpversion:file:Cargo.toml]
search = version = "{current_version}"
replace = version = "{new_version}"

View File

@ -1,6 +1,6 @@
name: veilid
description: Veilid Network
version: 0.0.1
version: 0.1.0
homepage: https://veilid.com
publish_to: "none" # Remove this line if you wish to publish to pub.dev

View File

@ -1,6 +1,6 @@
[tool.poetry]
name = "veilid"
version = "0.5.0"
version = "0.1.0"
description = ""
authors = ["Veilid Team <contact@veilid.com>"]
readme = "README.md"

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