Skip to content

Commit 30a7094

Browse files
committed
fix: release script
1 parent 1d9d2e0 commit 30a7094

1 file changed

Lines changed: 10 additions & 4 deletions

File tree

.github/create-release.sh

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
#!/bin/bash
2-
# Usage: merge all feature branches into dev first
2+
3+
# USAGE: ./create-release.sh (major|minor|patch)
4+
5+
# HOWOT: merge all feature branches into dev first
36
# run this script on dev branch
47
# create a PR to merge dev into master (will create a new release)
58

@@ -8,7 +11,10 @@ set -e
811

912
echo "Please note: If you did not use this script before, please run ./install-release-tools.sh!"
1013

11-
BUMP="${1:-path}"
14+
BUMP="${1:-patch}"
1215
VERSION=$(cat "${DIR}/../VERSION")
13-
NEW_VERSION=$(semver bump $BUMP $VERSION)
14-
(cd "${DIR}/../src" && dch -v ${NEW_VERSION} --distribution main "$(git log -1 --pretty=%B)" --force-distribution)
16+
NEW_VERSION=$(semver bump "$BUMP" "$VERSION")
17+
(cd "${DIR}/../src" && dch -v ${NEW_VERSION} --distribution main --force-distribution)
18+
echo "$NEW_VERSION" > "${DIR}/../VERSION"
19+
20+
echo "You are ready to commit the new version: git add -A && git commit -m \"chore: release v${NEW_VERSION}\""

0 commit comments

Comments
 (0)