Skip to content

Commit f169c5c

Browse files
committed
fix: initial git cliff version
1 parent 49b9ac7 commit f169c5c

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

bin/package-manager/none/release

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,8 @@ bump_type=${1:-"patch"} # or minor, major
55
# Get the tags locally
66
git pull
77
# calculate the next version
8-
next_version=$(git cliff --bump "$bump_type" --context --tag-pattern "v[0-9]+\\.[0-9]+\\.[0-9]+" | jq -r '.[0].version' | tr -d "v")
8+
export GIT_CLIFF__BUMP__INITIAL_TAG=v0.1.0 # by default it's 0.1.0
9+
next_version=$(git cliff --unreleased --bump "$bump_type" --context --tag-pattern "v[0-9]+\\.[0-9]+\\.[0-9]+" | jq -r '.[0].version' | tr -d "v")
910
echo "Releasing to the version $next_version"
1011
# release
1112
JRELEASER_PROJECT_VERSION="$next_version" jreleaser release

0 commit comments

Comments
 (0)