Skip to content

Commit 8e5c1b3

Browse files
committed
fix(deploy): ensure composer dev deps installed before build
1 parent 77248b7 commit 8e5c1b3

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

bin/deploy.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -170,6 +170,8 @@ commit_and_push() {
170170

171171
build_zip() {
172172
echo "==> Building plugin ZIP"
173+
# Ensure dev dependencies (like wp-cli) exist before prebuild (makepot)
174+
composer install --no-interaction >/dev/null 2>&1 || composer install --no-interaction
173175
MU_CLIENT_ID="${MU_CLIENT_ID:-dummy}" MU_CLIENT_SECRET="${MU_CLIENT_SECRET:-dummy}" npm run build
174176
if [[ ! -f "$ZIP_PATH" ]]; then
175177
echo "Error: Build did not produce $ZIP_PATH"

0 commit comments

Comments
 (0)