Skip to content

Commit c16417a

Browse files
committed
fix(repo): release script to versions sort by semver
1 parent 74b1d8a commit c16417a

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

repo/changelog/generate-changelog

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,6 @@ command -v git >/dev/null || { echo "git is not installed" 1>&2; exit 127; }
1616
command -v node >/dev/null || { echo "node is not installed" 1>&2; exit 127; }
1717
command -v awk >/dev/null || { echo "awk is not installed" 1>&2; exit 127; }
1818

19-
git log --oneline --no-decorate $(git tag | tail -n1)..HEAD |
19+
git log --oneline --no-decorate $(git tag | sort -V | tail -n1)..HEAD |
2020
awk {'first=$1; $1=""; print ""$0"\\n"first""'} | sed 's/^ //' |
2121
$DIR/parse-commits.js

repo/release

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ command -v $BROWSER >/dev/null || { echo "$BROWSER was not found" 1>&2; exit 127
77

88
git push origin master
99

10-
VERSION=$(git tag | tail -n1 | awk -F. '{ print $1"."$2+1".0" }')
10+
VERSION=$(git tag | sort -V | tail -n1 | awk -F. '{ print $1"."$2+1".0" }')
1111

1212
URL="https://github.com/jneidel/dotfiles/releases/new?tag=$VERSION&title=Recent%20changes%20to%20my%20dotfiles%20($VERSION)&body="
1313
$BROWSER "$URL$($DIR/changelog/generate-changelog)" >/dev/null 2>&1 &

0 commit comments

Comments
 (0)