Repository navigation
ci: split downstream release workflow into reusable stages - #329
Conversation
There was a problem hiding this comment.
Pull request overview
This PR restructures the downstream (workspace template) release automation by splitting the previous monolithic release workflow into reusable workflow_call stages, adding a contract-version validator, and introducing a dedicated prepare-release workflow and associated documentation for downstream adoption.
Changes:
- Replaced downstream
release.ymlwith an orchestrator that callsrelease-core,release-extension(project-owned hook), andrelease-publish. - Added
prepare-release.ymlto automate release branch creation and draft PR creation. - Added contract validation (
validate-contract) and documented the downstream release contract and modes (candidate vs final).
Reviewed changes
Copilot reviewed 11 out of 11 changed files in this pull request and generated 8 comments.
Show a summary per file
| File | Description |
|---|---|
| docs/RELEASE_CYCLE.md | Adds downstream integration pointers and links to downstream release workflow docs. |
| docs/DOWNSTREAM_RELEASE.md | New contract documentation for the split downstream release workflows and extension hook. |
| assets/workspace/justfile.project | Adds commented helper examples for manually dispatching prepare/final/candidate workflows. |
| assets/workspace/.github/workflows/release.yml | Converts release flow into an orchestrator over core/extension/publish and keeps rollback handling. |
| assets/workspace/.github/workflows/release-core.yml | New reusable “core” stage: validate/finalize/test + candidate/final behavior + tag computation. |
| assets/workspace/.github/workflows/release-extension.yml | New default no-op extension hook workflow for downstream-owned customization. |
| assets/workspace/.github/workflows/release-publish.yml | New reusable publish stage: tag + GitHub Release creation (pre-release for candidates). |
| assets/workspace/.github/workflows/prepare-release.yml | New workflow to prepare release branches, freeze/reset changelog, and open a draft PR. |
| assets/workspace/.github/actions/validate-contract/action.yml | New composite action enforcing a single-source contract version. |
| assets/init-workspace.sh | Preserves downstream-owned release-extension.yml during --force upgrades. |
| CHANGELOG.md | Adds an Unreleased entry describing the downstream release workflow split and docs. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
There was a problem hiding this comment.
Pull request overview
This PR refactors the downstream (workspace template) release automation by splitting a monolithic release.yml into reusable, contract-versioned workflow stages (core, extension, publish) and adding a standalone prepare-release workflow, with accompanying documentation updates.
Changes:
- Introduces reusable workflow stages (
release-core.yml,release-extension.yml,release-publish.yml) orchestrated by a simplifiedrelease.yml, plus a shared contract validator action. - Adds
prepare-release.ymlto create/freeze release branches and draft PRs, and preserves downstream-ownedrelease-extension.ymlduring forced workspace upgrades. - Documents the downstream release contract and release-mode behavior, and records the change in the changelog.
Reviewed changes
Copilot reviewed 11 out of 11 changed files in this pull request and generated 4 comments.
Show a summary per file
| File | Description |
|---|---|
| docs/RELEASE_CYCLE.md | Adds downstream integration notes and links to the downstream release contract doc. |
| docs/DOWNSTREAM_RELEASE.md | New document defining the downstream release workflow contract, extension hook, and release modes. |
| assets/workspace/justfile.project | Adds commented helper examples for dispatching prepare/final/candidate workflows. |
| assets/workspace/.github/workflows/release.yml | Replaces monolith with orchestration over core/extension/publish plus rollback. |
| assets/workspace/.github/workflows/release-core.yml | New reusable “core” stage: validation, optional finalization, and tests; computes publish tag. |
| assets/workspace/.github/workflows/release-extension.yml | New downstream-owned extension hook (default no-op) with contract validation. |
| assets/workspace/.github/workflows/release-publish.yml | New reusable publish stage: tags and creates GitHub Release (pre-release for candidates). |
| assets/workspace/.github/workflows/prepare-release.yml | New workflow to prepare release branches, freeze changelog, and open a draft PR. |
| assets/workspace/.github/actions/validate-contract/action.yml | New composite action enforcing contract version matching. |
| assets/init-workspace.sh | Preserves .github/workflows/release-extension.yml on --force upgrades. |
| CHANGELOG.md | Adds an Unreleased entry describing the downstream release workflow split and contract. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Description
Split downstream release execution into reusable local workflows with a project-owned extension hook, add a release contract validator, and introduce a dedicated
prepare-releaseworkflow for branch preparation. This also documents the downstream contract and candidate/final release behavior.Type of Change
feat-- New featurefix-- Bug fixdocs-- Documentation onlychore-- Maintenance task (deps, config, etc.)refactor-- Code restructuring (no behavior change)test-- Adding or updating testsci-- CI/CD pipeline changesbuild-- Build system or dependency changesrevert-- Reverts a previous commitstyle-- Code style (formatting, whitespace)Modifiers
!) -- This change breaks backward compatibilityChanges Made
assets/workspace/.github/workflows/release.ymlrelease-core,release-extension, andrelease-publishrelease-kinddispatch input and propagated mapped inputs into reusable workflowscoreassets/workspace/.github/workflows/release-core.ymlworkflow_callrelease_kindsupport for candidate (X.Y.Z-rcN) and final (X.Y.Z) behaviorassets/workspace/.github/workflows/release-extension.ymlassets/workspace/.github/workflows/release-publish.ymlassets/workspace/.github/actions/validate-contract/action.ymlassets/workspace/.github/workflows/prepare-release.ymlworkflow_dispatch) for release branch setup and draft PR creationassets/workspace/justfile.projectassets/init-workspace.shrelease-extension.ymlon--forceworkspace upgradesdocs/DOWNSTREAM_RELEASE.md,docs/RELEASE_CYCLE.md,CHANGELOG.mdChangelog Entry
Added
workflow_callrelease phases (release-core.yml,release-publish.yml) and a lightweightrelease.ymlorchestrator inassets/workspace/.github/workflows/release_kindsupport with candidate mode (X.Y.Z-rcN) and final mode (X.Y.Z) in downstream release workflowsrelease-extension.ymlstub and preserve it duringinit-workspace.sh --forceupgradesvalidate-contractcomposite action for single-source contract version validationdocs/DOWNSTREAM_RELEASE.mdTesting
just test)Manual Testing Details
N/A
Checklist
docs/templates/, then runjust docs)CHANGELOG.mdin the[Unreleased]section (and pasted the entry above)Additional Notes
The branch is split into three atomic commits to keep review boundaries clear (workflow architecture, prepare-release flow, docs/changelog).
Refs: #326