We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents ec1e211 + 25e0d6e commit cf8bfc0Copy full SHA for cf8bfc0
dev-bin/release.sh
@@ -2,6 +2,14 @@
2
3
set -eu -o pipefail
4
5
+# Check that we're not on the main branch
6
+current_branch=$(git branch --show-current)
7
+if [ "$current_branch" = "main" ]; then
8
+ echo "Error: Releases should not be done directly on the main branch."
9
+ echo "Please create a release branch and run this script from there."
10
+ exit 1
11
+fi
12
+
13
changelog=$(cat CHANGELOG.md)
14
15
regex='
0 commit comments