Skip to content

fix(release): composer install before zip so central locales ship#52

Merged
mpge merged 1 commit intomainfrom
fix/release-bundle-vendor
May 2, 2026
Merged

fix(release): composer install before zip so central locales ship#52
mpge merged 1 commit intomainfrom
fix/release-bundle-vendor

Conversation

@mpge
Copy link
Copy Markdown
Member

@mpge mpge commented May 2, 2026

Issue

Spotted by @MatthewPG while reviewing #51 (cfc9c81). The plugin's textdomain loader reads central translations from vendor/escalated-dev/locale/languages/escalated-{locale}.mo, but the release workflow builds the zip from a fresh checkout without running composer install — so vendor/ is empty and the zip silently ships without central translations.

The plugin's fallback to the legacy in-tree languages/ dir hid the regression at runtime, but downstream installs miss portfolio-wide locale updates.

Fix

Add shivammathur/setup-php@v2 + composer install --no-dev --no-interaction --prefer-dist --optimize-autoloader before the rsync. composer.json itself stays excluded from the zip (end-users don't need it); only the resolved vendor/ tree is bundled.

Verification

After merge, tag a v* release and confirm the asset on the GitHub Release contains escalated/vendor/escalated-dev/locale/languages/escalated-en_US.mo (and other locales).

The plugin's textdomain loader reads from
vendor/escalated-dev/locale/languages/escalated-{locale}.mo (introduced
in #51 / cfc9c81). The release workflow built the zip from a fresh
checkout without running composer install, so vendor/ was empty and the
zip silently shipped without central translations — the plugin's
fallback to the legacy in-tree languages/ dir hid the regression at
runtime, but downstream installs miss portfolio-wide updates.

Add a setup-php + composer install step before the rsync. composer.json
itself stays excluded from the zip (end-users don't need it); only the
resolved vendor/ tree is bundled.
@mpge mpge merged commit 22cddd4 into main May 2, 2026
3 checks passed
@mpge mpge deleted the fix/release-bundle-vendor branch May 2, 2026 19:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant