Skip to content

Commit

Permalink
chore: prompt maintainer to quit make watch before publish (#12357)
Browse files Browse the repository at this point in the history
* chore: prompt maintainer to quit make watch before publish

* move shell prompt to Makefile
  • Loading branch information
JLHwung committed Nov 14, 2020
1 parent 3e0fa92 commit cff0d7c
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion Makefile
Expand Up @@ -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

Expand Down

0 comments on commit cff0d7c

Please sign in to comment.