Skip to content

fix: make the build workflow install runtime deps only and refresh the audit scripts - #11

Merged
heyKhoaiz merged 2 commits into
mainfrom
fix/ci-build-on-min-php
Sep 9, 2026
Merged

heyKhoaiz merged 2 commits into
mainfrom
fix/ci-build-on-min-php

Conversation

@heyKhoaiz

Copy link
Copy Markdown
Contributor

Every run of the build workflow has failed at composer install: the lock was regenerated on PHP 8.4 and pins dev packages (phpinsights 2.14, symfony 8) that need PHP 8.3+/8.4+, while the workflow installs on the plugin's declared minimum, PHP 8.2. The runtime set installs cleanly on 8.2 and is all the build needs, and scripts/build-plugin.mjs already packages the release with --no-dev. The workflow and the readme build line now match it.

Behind that, the "free code only" step would have failed next: this tree's copies of the two scripts/public-repo audit scripts were stale and did not list the committed version-panel.pro.tsx stub. Both are refreshed from the add-on repository's copies.

Verified locally: composer install --no-dev dry-run on a PHP 8.2 container, pnpm ts-check, pnpm build:free, the asset assertions, assert-no-pro.mjs --tree . and pnpm test all pass.

🤖 Generated with Claude Code

heyKhoaiz and others added 2 commits September 9, 2026 14:49
…e audit scripts

Every run of the build workflow has failed at `composer install`. The lock
was regenerated on PHP 8.4 by the Dependabot cleanup, and the dev packages it
pins — phpinsights 2.14 (php ^8.3) and symfony 8 (php >=8.4.1) — cannot be
installed on the PHP 8.2 the workflow uses, which is the plugin's declared
minimum. The runtime set installs fine there, and it is all the build needs:
type-check, build and tests are Node-side, and `scripts/build-plugin.mjs`
already packages the release from `composer install --no-dev`. The workflow
and the readme's build line now install the same way.

Behind that, the "free code only" step would have failed next: this tree's
copies of `scripts/public-repo/manifest.mjs` and `assert-no-pro.mjs` were
stale against the ones the add-on repository audits with, and did not list the
committed `version-panel.pro.tsx` stub. Both are refreshed from the add-on
repository's copies, which pass against this tree.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
The action refuses to run without a version in its config or a
`packageManager` field. Pinning it here also fixes the version for anyone
building from source.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
@heyKhoaiz
heyKhoaiz merged commit 452ec74 into main Sep 9, 2026
1 check passed
heyKhoaiz added a commit that referenced this pull request Sep 9, 2026
fix: make the build workflow install runtime deps only and refresh the audit scripts
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