From 49f35a64a5ebfedd3cbffa4ea5211ea1053023a5 Mon Sep 17 00:00:00 2001 From: admin Date: Tue, 26 May 2026 08:32:41 +0800 Subject: [PATCH] feat: add npm run build to deploy script workflow --- public/git-pull.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/public/git-pull.php b/public/git-pull.php index 781ab4b64..d0962a969 100644 --- a/public/git-pull.php +++ b/public/git-pull.php @@ -124,7 +124,10 @@ execute("git status 2>&1"); // 2. Pull latest changes execute("git pull origin main 2>&1"); -// 3. Re-optimize Laravel cache and run migrations +// 3. Build frontend assets +execute("npm run build 2>&1"); + +// 4. Re-optimize Laravel cache and run migrations execute("php artisan optimize:clear 2>&1"); execute("php artisan migrate --force 2>&1");