chore: increment minor number for snapshot versions (#30487)

We've always wanted to increment minor versions instead of patch
versions for new releases, as it's more semantic. This PR will change
the snapshot version calculation to increment the minor number instead
of the patch number.

Came up from [this Slack
thread](https://theappsmith.slack.com/archives/CGBPVEJ5C/p1705674928122129?thread_ts=1704793408.986219&cid=CGBPVEJ5C).
This commit is contained in:
Shrikant Sharat Kandula 2024-01-22 10:02:57 +05:30 committed by GitHub
parent d480063861
commit e5455e0f90
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 2 additions and 2 deletions

View File

@ -26,7 +26,7 @@ version-resolver:
patch:
labels:
- "Patch"
default: patch
default: minor
template: |
## What's new?

View File

@ -13,7 +13,7 @@ if [[ "${GITHUB_REF-}" =~ ^refs/tags/v ]]; then
else
latest_released_version="$(git ls-remote --tags --sort=-v:refname "$(git remote | head -1)" 'v*' | awk -F/ '{print $NF; exit}')"
echo "latest_released_version = $latest_released_version" >&2
next_version="$(echo "$latest_released_version" | awk -F. -v OFS=. '{ $3++; print }')"
next_version="$(echo "$latest_released_version" | awk -F. -v OFS=. '{ $2++; $3 = 0; print }')"
echo "next_version = $next_version" >&2
version="$next_version-SNAPSHOT"
fi