File tree Expand file tree Collapse file tree 1 file changed +2
-4
lines changed
Expand file tree Collapse file tree 1 file changed +2
-4
lines changed Original file line number Diff line number Diff 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."
You can’t perform that action at this time.
0 commit comments