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 2e9ce13 commit 1e3d9e8Copy full SHA for 1e3d9e8
.github/scripts/publish.sh
@@ -8,12 +8,12 @@ then
8
exit 1;
9
fi;
10
11
-MAJOR=$(cat $VERSION_FILE | grep Major | grep -Eo '[0-9]*');
12
-MINOR=$(cat $VERSION_FILE | grep Minor | grep -Eo '[0-9]*');
13
-PATCH=$(cat $VERSION_FILE | grep Patch | grep -Eo '[0-9]*');
14
-
15
LAST_TAG=$(git tag | tail -n 1);
+MAJOR=$(echo $LAST_TAG | sed -E 's/v([0-9]+)\..*/\1/');
+MINOR=$(echo $LAST_TAG | sed -E 's/v[0-9]+\.([0-9]+)\..*/\1/');
+PATCH=$(echo $LAST_TAG | sed -E 's/v[0-9]+\.[0-9]+\.([0-9]+)-rc/\1/');
16
RC=0;
+
17
if [ "$RELEASE_CANDIDATE" = true ]
18
then
19
RC=$(git tag | grep "v$MAJOR.$MINOR.$PATCH-rc" | wc -l | xargs || true);
0 commit comments