From 3f9196793b46119a71b04d4aa84a5449c975d484 Mon Sep 17 00:00:00 2001 From: Lucas Rodriguez Date: Fri, 27 Sep 2024 23:25:35 -0500 Subject: [PATCH] Use npm --prefix flag instead of cd Signed-off-by: Lucas Rodriguez --- scripts/deploy.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/deploy.sh b/scripts/deploy.sh index a49b9eb..d81a73a 100755 --- a/scripts/deploy.sh +++ b/scripts/deploy.sh @@ -2,8 +2,8 @@ set -euo pipefail -cd ui && npm ci --legacy-peer-deps && npm run build -cd - || exit 1 +npm --prefix=ui ci +npm --prefix=ui run build GOOS=linux GOARCH=amd64 go build -o ./bin/api