Fix deploy: git checkout before pull, use npm ci
Deploy to LXC / deploy (push) Successful in 19s

Prevents package-lock.json conflicts by resetting local changes
before pulling. Uses npm ci (clean install from lockfile) instead
of npm ci --production=false.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
2026-04-13 15:45:48 +07:00
parent 4322383ed8
commit 9a73c60d10
+3 -1
View File
@@ -43,12 +43,14 @@ jobs:
cd "$APP_DIR" cd "$APP_DIR"
else else
cd "$APP_DIR" cd "$APP_DIR"
echo "==> Resetting local changes..."
git checkout -- .
echo "==> Pulling latest code..." echo "==> Pulling latest code..."
git pull origin main git pull origin main
fi fi
echo "==> Installing dependencies..." echo "==> Installing dependencies..."
npm ci --production=false npm ci
echo "==> Building..." echo "==> Building..."
npm run build npm run build