Conversation
) Re-sync the upstream ProjectTemplate fixes (ptr727/ProjectTemplate#184/#185, Fixes #181/#182/#183) that resolved the publish-dispatch mis-versioning defect surfaced while re-syncing this downstream. - publish-release.yml: fail fast when a publish is dispatched on a non-default ref; the matrix builds both branches, so a non-default dispatch mis-versions the main leg and publishes a malformed non-prerelease "Latest". - build-release-task.yml: refuse to create a main release whose SemVer2 carries a prerelease suffix (root-cause-agnostic safety net). - .editorconfig: correct JSON/JSONC casing in the section comment. Co-authored-by: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
There was a problem hiding this comment.
Pull request overview
Promotes the recent template re-sync changes from develop to main, tightening release-publish workflow safety checks to prevent mis-versioned “Latest” releases and aligning .editorconfig comment casing.
Changes:
- Add a
workflow_dispatchguard inpublish-release.ymlthat fails fast unless the dispatch is run from the repository default branch. - Add a backstop in
build-release-task.ymlthat refuses to publish amain(public) release ifSemVer2includes a prerelease suffix (-...). - Fix the
.editorconfigsection comment casing for JSON/JSONC.
Reviewed changes
Copilot reviewed 3 out of 3 changed files in this pull request and generated no comments.
| File | Description |
|---|---|
| .github/workflows/publish-release.yml | Adds a dispatch-from-default-branch guard to prevent matrix mis-versioning on manual runs. |
| .github/workflows/build-release-task.yml | Adds a safety-net check to block publishing a main release with a prerelease-tagged SemVer2. |
| .editorconfig | Corrects JSON/JSONC casing in a section header comment. |
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.
Promote the template re-sync from develop to main.
Reincorporates upstream ProjectTemplate fixes (ptr727/ProjectTemplate#184 / #185) that resolved the publish-dispatch mis-versioning defect surfaced while re-syncing this downstream.
publish-release.yml: fail fast on a non-default-ref dispatch (the matrix builds both branches; a non-default dispatch mis-versions themainleg).build-release-task.yml: refuse amainrelease whoseSemVer2carries a prerelease suffix (safety-net backstop)..editorconfig: correct JSON/JSONC casing in the section comment.Workflow/governance changes only; no version bump.
🤖 Generated with Claude Code