Skip to content

Commit 460238f

Browse files
committed
Update check-version.sh
1 parent 934138c commit 460238f

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

scripts/git/check-version.sh

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,10 @@ if [ "$current_branch" = "main" ]; then
1111
exit 0
1212
fi
1313

14+
if [ -n "${SKIP_VERSION_CHECK:-}" ]; then
15+
exit 0
16+
fi
17+
1418
output="$(npm run -s fix:version -- --silent 2>&1)"
1519
status=$?
1620

@@ -31,5 +35,8 @@ if [ -n "$output" ]; then
3135
else
3236
echo 'Commit again if you are ok with the new ID.' >&2
3337
fi
38+
echo >&2
39+
echo "Don't want the version to be changed, maybe because this is a release" >&2
40+
echo "branch? Set SKIP_VERSION_CHECK=1" >&2
3441
exit 1
3542
fi

0 commit comments

Comments
 (0)