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:
@@ -43,12 +43,14 @@ jobs:
|
||||
cd "$APP_DIR"
|
||||
else
|
||||
cd "$APP_DIR"
|
||||
echo "==> Resetting local changes..."
|
||||
git checkout -- .
|
||||
echo "==> Pulling latest code..."
|
||||
git pull origin main
|
||||
fi
|
||||
|
||||
echo "==> Installing dependencies..."
|
||||
npm ci --production=false
|
||||
npm ci
|
||||
|
||||
echo "==> Building..."
|
||||
npm run build
|
||||
|
||||
Reference in New Issue
Block a user