chore: prompt maintainer to quit make watch before publish (#12357)

* chore: prompt maintainer to quit make watch before publish

* move shell prompt to Makefile
This commit is contained in:
Huáng Jùnliàng 2020-11-14 08:23:29 -05:00 committed by GitHub
parent 3e0fa927c0
commit cff0d7c727
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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