Skip to content

Commit

Permalink
Add tools/update-version.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
taiki-e committed Mar 25, 2021
1 parent f5e95b5 commit ec7b303
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 1 deletion.
2 changes: 1 addition & 1 deletion ci/publish.sh
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,6 @@ for i in "${!MEMBERS[@]}"; do
cargo publish
)
if [[ $((i + 1)) != "${#MEMBERS[@]}" ]]; then
sleep 30
sleep 45
fi
done
16 changes: 16 additions & 0 deletions tools/update-version.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
#!/bin/bash

# Update version in Cargo.toml.
#
# Usage:
# ./tools/update-version.sh [options]
# ./tools/update-version.sh -y patch
# ./tools/update-version.sh -y minor
# ./tools/update-version.sh -y prerelease --pre-id alpha
#
# Note: This script requires cargo-workspaces <https://github.com/pksunkara/cargo-workspaces>

set -euo pipefail
IFS=$'\n\t'

cargo workspaces version --force '*' --no-git-commit --exact "$@"

0 comments on commit ec7b303

Please sign in to comment.