Skip to content

Commit f7a0c3a

Browse files
committed
fix version check
1 parent 366724f commit f7a0c3a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.github/workflows/release-source.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -91,10 +91,10 @@ jobs:
9191
9292
if [ "$input_major" -eq "$file_major" ]; then
9393
if [ "$input_minor" -eq "$file_minor" ]; then
94-
if [ "$input_patch" -gt "$stable_patch" ]; then
94+
if [ "$input_patch" -eq "$stable_patch" ]; then
9595
echo "Valid patch version input"
9696
else
97-
echo "Error: Patch version cannot be less than or equal to the stable release version."
97+
echo "Error: Patch version must match the package.json version without the -SNAPSHOT suffix."
9898
exit 1
9999
fi
100100
elif [ "$input_minor" -gt "$file_minor" ] && [ "$input_patch" -eq 0 ]; then

0 commit comments

Comments
 (0)