fix(release): fix SVN deploy — download artifact instead of rebuilding with --no-dev#753
Conversation
…g with --no-dev The deploy-to-wporg job was running composer install --no-dev then npm run build, which triggers the prebuild script that calls wp-cli via vendor/wp-cli/wp-cli/bin/wp. Since wp-cli/wp-cli-bundle is a dev dependency, it was absent and the build failed. Fix: upload the zip as a GitHub Actions artifact in the build job, then download and unzip it in deploy-to-wporg — no rebuild needed. Matches the pattern used in the ai-provider-for-any-compatible-endpoint deploy workflow. Also bumps Node.js from 18 to 20 in the build job; several packages already require node>=20 and were emitting EBADENGINE warnings.
|
Caution Review failedPull request was closed or merged during review 📝 WalkthroughWalkthroughThe GitHub Actions release workflow was restructured to use artifact caching and download instead of rebuilding during deployment. Node.js runtime was upgraded from version 18 to 20. The build job now uploads a zip artifact, and the deploy job downloads and extracts it using a new VERSION extraction step. Changes
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~20 minutes Possibly related PRs
Poem
🚥 Pre-merge checks | ✅ 3✅ Passed checks (3 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
🔨 Build Complete - Ready for Testing!📦 Download Build Artifact (Recommended)Download the zip build, upload to WordPress and test:
🌐 Test in WordPress Playground (Very Experimental)Click the link below to instantly test this PR in your browser - no installation needed! Login credentials: |
ProblemThe Root cause: The job ran Fix
VerificationMerge and tag a patch release (e.g. Merged via PR #753 to main.
|
|
Performance Test Results Performance test results for 5500855 are in 🛎️! Note: the numbers in parentheses show the difference to the previous (baseline) test run. Differences below 2% or 0.5 in absolute values are not shown. URL:
|
Problem
The
deploy-to-wporgjob was failing onnpm run buildwith:Root cause: The job ran
composer install --no-dev, which skipswp-cli/wp-cli-bundle(a dev dependency). Thennpm run buildtriggers theprebuildscript →makepot→ callsvendor/wp-cli/wp-cli/bin/wp→ not found → exit 1. The SVN deploy step never ran.Fix
actions/upload-artifact@v4, 7-day retention).MU_CLIENT_ID/MU_CLIENT_SECRETsecrets needed.commander,listr2,string-width,nano-spawn,qified) already requirenode>=20and were emittingEBADENGINEwarnings.This matches the pattern used in
Ultimate-Multisite/ai-provider-for-any-compatible-endpoint(deploy.yml).Verification
Merge and tag a patch release (e.g.
v2.5.1) — thedeploy-to-wporgjob should complete the SVN deploy step successfully.The v2.5.0 SVN deploy did not complete. After this merges, we should re-trigger it manually or tag a patch.
Summary by CodeRabbit
Release Notes