We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f883a9d commit ea3413cCopy full SHA for ea3413c
script/release
@@ -5,8 +5,8 @@
5
6
set -e
7
8
-usage() {
9
- echo "Usage: $0 [-r] Tags and releases/publishes octokit" 1>&2; exit 1;
+usage() {
+ echo "Usage: $0 [-r] Tags and releases/publishes octokit" 1>&2; exit 1;
10
}
11
12
while [ $# -gt 0 ]
@@ -35,9 +35,9 @@ else
35
./script/package
36
37
# We need to pull the version from the actual file that is about to be published
38
- file=$(ls pkg/*.gem | sort | tail -1)
39
- version=$(echo $file | sed -e 's/.*octokit-\(.*\).gem.*/\1/')
40
-
+ file=$(ls pkg/*.gem | sort -V | tail -1)
+ version=$(echo $file | sed -e 's/.*octokit-\(.*\).gem.*/\1/')
+
41
[ -n "$version" ] || exit 1
42
43
echo "*** Tagging and publishing $version of octokit ***"
0 commit comments