We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 934138c commit 460238fCopy full SHA for 460238f
scripts/git/check-version.sh
@@ -11,6 +11,10 @@ if [ "$current_branch" = "main" ]; then
11
exit 0
12
fi
13
14
+if [ -n "${SKIP_VERSION_CHECK:-}" ]; then
15
+ exit 0
16
+fi
17
+
18
output="$(npm run -s fix:version -- --silent 2>&1)"
19
status=$?
20
@@ -31,5 +35,8 @@ if [ -n "$output" ]; then
31
35
else
32
36
echo 'Commit again if you are ok with the new ID.' >&2
33
37
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
34
41
exit 1
42
0 commit comments