Skip to content

[6.x] Update Release Workflow#14804

Merged
jasonvarga merged 8 commits into
6.xfrom
worktree-update-release-workflow
Jun 23, 2026
Merged

[6.x] Update Release Workflow#14804
jasonvarga merged 8 commits into
6.xfrom
worktree-update-release-workflow

Conversation

@jasonvarga

@jasonvarga jasonvarga commented Jun 10, 2026

Copy link
Copy Markdown
Member

Replaces pixelfear/composer-dist-plugin (which fetched compiled assets at install time) with a CI-driven release that builds the assets into the released tag itself. Consumers get the built dist inside the Packagist zip — no post-install fetch.

  • Release is triggered manually in the Actions section in GitHub, rather than pushing a tag.
  • A GitHub App bot will compile, commit, and tag on a separate branch. A separate branch is used so that the compiled assets are never actually tracked on any long lived branch.
  • A GitHub Environment is used so we can add rules such as releases can only be triggered from specific branches (5.x, 6.x).
  • The dist directories are marked as linguist-generated so GitHub doesn't render their diffs or count the lines in the language stats.

Replaces the pixelfear/composer-dist-plugin install-time dist fetch with a
workflow_dispatch release that builds the assets into an off-branch commit and
tags it, so the compiled dist ships inside the Packagist zip.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
@jasonvarga jasonvarga requested a review from a team as a code owner June 10, 2026 19:41
@jasonvarga jasonvarga marked this pull request as draft June 10, 2026 19:43
jasonvarga and others added 7 commits June 10, 2026 15:44
Narrows the minted App installation token to only the contents permission it
needs, instead of inheriting all installation permissions.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
…e-workflow

# Conflicts:
#	.github/workflows/release.yml
Bare version input with auto-v tagging, branch/major validation, default-branch
latest gating, prerelease detection, runtime bot identity, and Releases
environment. Drops source-ref in favour of the dispatched branch.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Switches to a bash regex match so a trailing newline can't slip extra lines
into GITHUB_ENV, while still permitting prerelease suffixes.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Captures the ls-remote output first so a transient failure aborts the run
instead of being read as "tag absent".

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
@jasonvarga jasonvarga marked this pull request as ready for review June 23, 2026 03:28
@jasonvarga jasonvarga merged commit ba6404d into 6.x Jun 23, 2026
22 checks passed
@jasonvarga jasonvarga deleted the worktree-update-release-workflow branch June 23, 2026 13:37
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