From 00bab7beb8e88d62ff760177cc64f15df1937ab7 Mon Sep 17 00:00:00 2001 From: Sebastian McKenzie Date: Fri, 10 Oct 2014 17:39:45 +1100 Subject: [PATCH] refuse to publish if there are uncommitted changes --- Makefile | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Makefile b/Makefile index f9ceb13cdd..9dfd3a3141 100644 --- a/Makefile +++ b/Makefile @@ -38,6 +38,8 @@ build: rm -rf templates.json publish: + if test -n "`git status -s`"; then echo "uncommitted changes"; exit 1; fi + rm -rf node_modules git pull --rebase