Skip to content

Commit 8179531

Browse files
fix: detect release version bumps in workflow
Co-authored-by: Cursor <cursoragent@cursor.com>
1 parent a251580 commit 8179531

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

.github/workflows/release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,7 @@ jobs:
142142
manifest_diff="$(git diff -U0 "$before" "$after" -- "$manifest" || true)"
143143
# Require both removed and added "version" lines to avoid treating
144144
# metadata-only package.json edits as publish intents.
145-
if echo "$manifest_diff" | grep -Eq '^-\\s*"version"\\s*:' && echo "$manifest_diff" | grep -Eq '^\\+\\s*"version"\\s*:'; then
145+
if echo "$manifest_diff" | grep -Eq '^-[[:space:]]*"version"[[:space:]]*:' && echo "$manifest_diff" | grep -Eq '^\+[[:space:]]*"version"[[:space:]]*:'; then
146146
has_version_bumps=true
147147
break
148148
fi

0 commit comments

Comments
 (0)