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:
1 parent
4322383ed8
commit
9a73c60d10
1 file changed
+3
-1
@@ -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