ci: add release workflow#5
Merged
Merged
Conversation
Adds release.yml: a validate job (tag reachability/version/changelog checks via action-validate-release-tag and action-extract-release-notes, plus this repo's own format/lint checks) gated ahead of a create-release job that runs behind the release environment and self-hosts this repo's own action to cut the GitHub Release.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Context
This repo had no
release.ymlyet, onlypull-request.ymlandpush-main.yml.v1.0.0/v1were cut by hand before any release tooling existed. Per the org's release-tooling ADRs, every repo needs its ownvalidate→create-releasepipeline: signed/validated tags, a required-reviewer gate before release creation, and cross-consumption of the siblingaction-validate-release-tag/action-extract-release-notesactions.Changes
Adds
.github/workflows/release.yml:validatejob (no environment gate) that checks tag reachability frommainand version match viaaction-validate-release-tag, fail-fasts on a missingCHANGELOG.mdsection viaaction-extract-release-notes(write-file: 'false'), and reuses this repo's own.github/actions/cicomposite for format/lint checks.create-releasejob (needs: validate, gated behind thereleaseenvironment) that sets up the workspace without installing dependencies, writes.github/release-notes.mdviaaction-extract-release-notes, and self-hosts (uses: ./) this repo's own action to cut the GitHub Release and its "Announcements" Discussion.All external actions are pinned to a commit SHA with a
# vX.Y.Zcomment, per the org's pin convention.Test Plan
releaserequired-reviewer environment and the "Stable tags"/"Floating major tag" rulesets on this repo before merging (neither exists yet)validatepasses on avX.Y.Ztag push (tag reachability, version match, changelog section, format/lint)create-releasepauses for approval in thereleaseenvironment, then successfully creates the GitHub Release and Announcements Discussion