From cff0d7c72722f8ae7ce0d5918d0fc05fb79980af Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Hu=C3=A1ng=20J=C3=B9nli=C3=A0ng?= Date: Sat, 14 Nov 2020 08:23:29 -0500 Subject: [PATCH] chore: prompt maintainer to quit make watch before publish (#12357) * chore: prompt maintainer to quit make watch before publish * move shell prompt to Makefile --- Makefile | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 6e8f5d14d9cf..530398a9365a 100644 --- a/Makefile +++ b/Makefile @@ -243,7 +243,13 @@ new-version: $(YARN) release-tool version $(FORCE_PUBLISH) # NOTE: Run make new-version first -publish: prepublish +publish: + @echo "Please confirm you have stopped make watch. (y)es, [N]o:"; \ + read CLEAR; \ + if [ "_$$CLEAR" != "_y" ]; then \ + exit 1; \ + fi + $(MAKE) prepublish $(YARN) release-tool publish $(MAKE) clean