Skip to content

Commit 2669ec4

Browse files
authored
release: add a prompt about DEVELOPMENT.md (#349)
I'm not saying I forgot to check the checklist in DEVELOPMENT.md before releasing today, but... uh, I'm not saying I _didn't_ forget, either.
1 parent 47423c5 commit 2669ec4

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

release.sh

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,16 @@
22

33
set -euf -o pipefail
44

5+
read -p 'Have you read DEVELOPMENT.md? [y/N] ' -n 1 -r
6+
echo
7+
case "$REPLY" in
8+
Y|y) ;;
9+
*)
10+
echo 'Please read the Releasing section of DEVELOPMENT.md before running this script.'
11+
exit 1
12+
;;
13+
esac
14+
515
if ! echo "$VERSION" | grep -Eq '^[0-9]+\.[0-9]+\.[0-9]+$'; then
616
echo "\$VERSION is not in MAJOR.MINOR.PATCH format"
717
exit 1

0 commit comments

Comments
 (0)