chore: bump script
This commit is contained in:
15
scripts/bump.sh
Normal file
15
scripts/bump.sh
Normal file
@@ -0,0 +1,15 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
|
||||||
|
set -euo pipefail
|
||||||
|
|
||||||
|
VERSION="$(git cliff --bumped-version)"
|
||||||
|
sed -i "s/^version = \".*\"/version = \"${VERSION}\"/" Cargo.toml
|
||||||
|
cargo check
|
||||||
|
echo Press Y to commit version bump to ${VERSION}
|
||||||
|
read -r CONFIRM
|
||||||
|
if [ "${CONFIRM}" != "Y" ]; then
|
||||||
|
echo Aborting
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
git commit -am "chore: bump version to ${VERSION}"
|
||||||
|
git tag -am "Version ${VERSION}" "${VERSION}"
|
||||||
Reference in New Issue
Block a user