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"
|
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
|
||||||
|
|||||||
Reference in New Issue
Block a user