Skip to content

fix(NO-TASK): Remove unused Composer install from Release workflow - #38

Merged
aaronware merged 2 commits into
mainfrom
fix/release-workflow-php-version
Jul 29, 2026
Merged

fix(NO-TASK): Remove unused Composer install from Release workflow#38
aaronware merged 2 commits into
mainfrom
fix/release-workflow-php-version

Conversation

@aaronware

Copy link
Copy Markdown
Contributor

Problem

The Release workflow has been failing on main since phpunit/phpunit ^13 landed (#23):

Root composer.json requires phpunit/phpunit ^13.0 -> satisfiable by phpunit/phpunit[13.0.0, ..., 13.2.6].
phpunit/phpunit[13.0.0, ..., 13.2.6] require php >=8.4.1 -> your php version (8.3.6) does not satisfy that requirement.

ci.yml sets up PHP via shivammathur/setup-php@v2 with php-version: latest, so it is unaffected. release-please.yml has no such step, so ramsey/composer-install runs against the runner's system PHP (8.3.6) and now fails.

Fix

Drop the Install Composer dependencies step. release-please-action is a Node action that only reads git history and release-please-config.json — it never needed the PHP dependencies. This also makes the job faster.

Adding setup-php instead would work too, but keeping a Composer install that nothing consumes is just a standing liability.

Note

The update-readme job in this same workflow is failing separately and is not addressed here — see the discussion on that; it needs a decision about linchpin/actions@v4.

🤖 Generated with Claude Code

aaronware and others added 2 commits July 28, 2026 18:43
release-please only reads git history and release-please-config.json, so it
never needed the PHP dependencies. The step also started failing outright once
phpunit/phpunit ^13 landed: this job has no setup-php step, so it runs on the
runner's system PHP 8.3.6, and PHPUnit 13 requires PHP >= 8.4.1.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
The shared linchpin/actions update-readme workflow generates a plugin/theme
table from composer.lock. This repo is a phpcs standards library: composer.lock
is gitignored and the README has no generated table, so the job was a no-op.

As of @v4 it is worse than a no-op -- it runs `git add README.md composer.lock`
without checking that the lock file is tracked, so it exits 128 on every push.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
@aaronware
aaronware merged commit 52a86fd into main Jul 29, 2026
1 check passed
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