Skip to content

Commit

Permalink
fix(build): Fail when ui build fails
Browse files Browse the repository at this point in the history
  • Loading branch information
pando85 committed Jan 27, 2024
1 parent c85b121 commit 223ba60
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 223ba60

Please sign in to comment.