diff --git a/.bumpversion.cfg b/.bumpversion.cfg index 0e617d4e..e3ae1f5d 100644 --- a/.bumpversion.cfg +++ b/.bumpversion.cfg @@ -1,3 +1,6 @@ [bumpversion] current_version = 0.1.0 +[bumpversion:file:Cargo.toml] +search = version = "{current_version}" +replace = version = "{new_version}" \ No newline at end of file diff --git a/veilid-flutter/pubspec.yaml b/veilid-flutter/pubspec.yaml index 285c72c6..98bdeddc 100644 --- a/veilid-flutter/pubspec.yaml +++ b/veilid-flutter/pubspec.yaml @@ -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 diff --git a/veilid-python/pyproject.toml b/veilid-python/pyproject.toml index 93eae34f..1bb32e8d 100644 --- a/veilid-python/pyproject.toml +++ b/veilid-python/pyproject.toml @@ -1,6 +1,6 @@ [tool.poetry] name = "veilid" -version = "0.5.0" +version = "0.1.0" description = "" authors = ["Veilid Team "] readme = "README.md" diff --git a/version_bump.sh b/version_bump.sh index b4688a19..5be30d80 100755 --- a/version_bump.sh +++ b/version_bump.sh @@ -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