Skip to content

Commit 5d8c138

Browse files
committed
fix patch version
1 parent f7a0c3a commit 5d8c138

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

.github/workflows/release-source.yml

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -81,17 +81,15 @@ jobs:
8181
file_minor=$(echo "$file_release_version" | cut -d'.' -f2)
8282
file_patch=$(echo "$file_release_version" | cut -d'.' -f3)
8383
84-
# decrement the patch version by 1 to get the latest stable release version
85-
stable_patch=$((file_patch - 1))
86-
echo "Stable release version: $file_major.$file_minor.$stable_patch"
84+
echo "Stable release version: $file_major.$file_minor.$file_patch"
8785
8886
input_major=$(echo "$input_release_version" | cut -d'.' -f1)
8987
input_minor=$(echo "$input_release_version" | cut -d'.' -f2)
9088
input_patch=$(echo "$input_release_version" | cut -d'.' -f3)
9189
9290
if [ "$input_major" -eq "$file_major" ]; then
9391
if [ "$input_minor" -eq "$file_minor" ]; then
94-
if [ "$input_patch" -eq "$stable_patch" ]; then
92+
if [ "$input_patch" -eq "$file_patch" ]; then
9593
echo "Valid patch version input"
9694
else
9795
echo "Error: Patch version must match the package.json version without the -SNAPSHOT suffix."

0 commit comments

Comments
 (0)