You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Add publish-release command to flip draft releases to published (#294)
* Fix invalid env context in release workflow job-level env blocks
The smoke-test and pages-deploy jobs redefined VERSION via
${{ env.VERSION }} in their job-level env: blocks, but the env
context is not available there, failing workflow validation.
The workflow-level env.VERSION is already inherited by all jobs
and steps, so the redundant redefinitions are removed.
https://claude.ai/code/session_014crGVw5Bwiv3nv4EoBimbz
* Publish GitHub release as a final step for immutable releases
The release job created the release already-published and then
uploaded assets, which fails once immutable releases are enforced
(post-publish asset uploads are rejected). Every asset now uploads
to a draft release first; a new `mdsmith-release publish-release`
subcommand flips the fully-populated draft to published as the
final atomic step, but only on the tag-push path. The maintainer's
UI-created draft path is left as a draft for manual publish.
The mise smoke-test is gated to the non-draft path since it
resolves the binary off the public GitHub release, which is not
downloadable while the release is still a draft.
https://claude.ai/code/session_014crGVw5Bwiv3nv4EoBimbz
* test: cover publish-release command and reachable error paths
Add unit tests for runPublishRelease (was 0% covered) and the
PATCH transport / response-body read error branches in
PublishRelease, bringing patch coverage above the Codecov gate.
https://claude.ai/code/session_014crGVw5Bwiv3nv4EoBimbz
* refactor: label publish errors and cover request-build path
Extract newGitHubRequest so the lookup and publish calls share one
request builder, drop the impossible json.Marshal error branch, and
add an Op label to releaseLookupError so a failed publish PATCH no
longer reports as "lookup ... unexpected status" (per review). Adds
white-box tests for the request-build error path; added Go lines in
the PR are now fully covered.
https://claude.ai/code/session_014crGVw5Bwiv3nv4EoBimbz
---------
Co-authored-by: Claude <noreply@anthropic.com>
0 commit comments