Skip to content

Commit eb74ec0

Browse files
add[mnt]: bumping version script
1 parent 89a667b commit eb74ec0

1 file changed

Lines changed: 15 additions & 0 deletions

File tree

scripts/release.sh

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
#!/usr/bin/env bash
2+
# scripts/release.sh <major|minor|patch|X.Y.Z>
3+
set -euo pipefail
4+
cd "$(git rev-parse --show-toplevel)"
5+
6+
case "$1" in
7+
major | minor | patch | alpha | beta | rc | release) cargo set-version --workspace --bump "$1" ;;
8+
*) cargo set-version --workspace "$1" ;;
9+
esac
10+
11+
V=$(cargo metadata --no-deps --format-version 1 | jq -r '.packages[0].version')
12+
npm --prefix npm version "$V" --no-git-tag-version --allow-same-version
13+
14+
# git commit -am "release: v$V"
15+
# git tag "v$V"

0 commit comments

Comments
 (0)