Skip to content

Promote develop to main: publish-dispatch guards and JSON casing fix#760

Merged
ptr727 merged 1 commit into
mainfrom
develop
Jun 23, 2026
Merged

Promote develop to main: publish-dispatch guards and JSON casing fix#760
ptr727 merged 1 commit into
mainfrom
develop

Conversation

@ptr727

@ptr727 ptr727 commented Jun 23, 2026

Copy link
Copy Markdown
Owner

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 the main leg).
  • build-release-task.yml: refuse a main release whose SemVer2 carries 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

)

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>
Copilot AI review requested due to automatic review settings June 23, 2026 00:21

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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_dispatch guard in publish-release.yml that fails fast unless the dispatch is run from the repository default branch.
  • Add a backstop in build-release-task.yml that refuses to publish a main (public) release if SemVer2 includes a prerelease suffix (-...).
  • Fix the .editorconfig section 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.

@ptr727 ptr727 merged commit 5565317 into main Jun 23, 2026
11 checks passed
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.

2 participants