Skip to content

Commit

Permalink
increment patch version on dev
Browse files Browse the repository at this point in the history
  • Loading branch information
DanielMSchmidt committed Jan 7, 2025
1 parent 369bf83 commit 5b0a19e
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
## 1.10.3 (Unreleased)
## 1.10.4 (Unreleased)


BUG FIXES:
Expand Down
6 changes: 6 additions & 0 deletions scripts/changelog.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
set -uo pipefail

CHANGIE_VERSION="${CHANGIE_VERSION:-1.21.0}"
SEMVER_VERSION="${SEMVER_VERSION:-7.6.3}"

function usage {
cat <<-'EOF'
Expand Down Expand Up @@ -45,6 +46,11 @@ function generate {
LATEST_VERSION=$(npx -y changie@$CHANGIE_VERSION latest -r --skip-prereleases)
COMPLETE_VERSION="$LATEST_VERSION-dev"

# Check if we already released this version already
if git tag -l "v$LATEST_VERSION" | grep -q "v$LATEST_VERSION"; then
LATEST_VERSION=$(npx -y semver@$SEMVER_VERSION -i patch $LATEST_VERSION)
fi

npx -y changie@$CHANGIE_VERSION merge -u "## $LATEST_VERSION (Unreleased)"

# If we have no changes yet, the changelog is empty now, so we need to add a header
Expand Down

0 comments on commit 5b0a19e

Please sign in to comment.