From 223ba60a51e9cdee3ecf0e9480b64dc3727658d4 Mon Sep 17 00:00:00 2001 From: Alexander Gil Date: Sat, 27 Jan 2024 09:50:04 +0100 Subject: [PATCH] fix(build): Fail when ui build fails --- Makefile | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 128e2bf..638bad6 100644 --- a/Makefile +++ b/Makefile @@ -32,7 +32,9 @@ worker: ## build worker binary build-%: @echo "Building dist/transcoder-$*" @if [ "$*" = "server" ]; then \ - cd server/web/ui && npm install --production && npm run build; \ + cd server/web/ui && \ + npm install --production && \ + npm run build || exit 1; \ cd -; \ fi @CGO_ENABLED=0 go build -o dist/transcoder-$* $*/main.go