Repository navigation
ci: align the release workflow - #572
Conversation
Check that the release tag is annotated and has a signature that GitHub verified, check the curated release notes (docs/releases/<version>.md) in prepare, and create the GitHub release with the shared publish-release action of elixir-cloud-aai/.github (draft with --verify-tag, curated notes, then the generated notes under Commits, published last). Document the notes and the new checks. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_011FSoqMpmDCfbACLj3uy6xV
Address review findings: read the tag ref once and report why a signature isn't verified, describe the shared action's behaviour accurately (no draft; re-runs pass only for matching releases; use "Re-run failed jobs"), add an example of curated notes and link the action's rules, and re-wrap the workflow header. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_011FSoqMpmDCfbACLj3uy6xV
Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_011FSoqMpmDCfbACLj3uy6xV
Reviewer's GuideConfigurationReview the release workflow’s tag-signature verification and pre-staging checks, then the shared action used to create the release after package staging.
DocumentationReview the Contributing guide updates together: they explain the new release checks, curated-notes format and example, signing procedure, and publication rerun behavior.
Tips and commandsInteracting with Sourcery
Customizing Your ExperienceAccess your dashboard to:
Getting Help
|
Documentation build overview
|
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## dev #572 +/- ##
=======================================
Coverage 71.40% 71.40%
=======================================
Files 23 23
Lines 5655 5655
Branches 199 199
=======================================
Hits 4038 4038
Misses 1610 1610
Partials 7 7 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
Linked issuesChecked at commit 626e36e #568 ci: align the release workflow · 5 of 7 met
|
There was a problem hiding this comment.
Hey - I've found 3 issues
Prompt for AI Agents
Please address the comments from this code review:
## Individual Comments
### Comment 1
<location path=".github/workflows/release.yml" line_range="133-137" />
<code_context>
+ # the Contributing page of the documentation), the tags and the
+ # existing releases, before anything is published
+ - name: Check the release notes
+ uses: elixir-cloud-aai/.github/actions/publish-release@31f22fccc1f3c597ed7c1d1f75b2f85522155348 # v1.1.0
+ with:
+ notes: docs/releases/${{ steps.version.outputs.version }}.md
+ commit: ${{ github.sha }}
+ check-only: "true"
+
- name: Use Node.js 24.x
</code_context>
<issue_to_address>
**Release check can go stale**
When a maintainer or another workflow creates a draft or mismatched release for the tag after the `prepare` check passes but before `publish` runs, the `npm` job can stage package versions before `publish-release` refuses to create the GitHub release, leaving staged versions without a release for that tag.
Prevent out-of-band release creation for workflow-managed tags during a release run, or add a reservation mechanism that makes the check and subsequent staging/publishing mutually exclusive.
Also at `.github/workflows/release.yml:302-305`.
</issue_to_address>
### Comment 2
<location path=".github/workflows/release.yml" line_range="3" />
<code_context>
-# `dev` and that CI passed for its commit, and lints; `npm` builds the
+# Releases from version tags (see "Releases" in the Contributing page of
+# the documentation): after the version bump pull request, a maintainer pushes a signed `v<version>` on
+# `dev` (tags on other branches fail). `prepare` checks the tag (annotated,
+# with a signature that GitHub verified), the versions of the packages and of
+# the citation metadata (`CITATION.cff`), that the tag is on `dev`, that CI
</code_context>
<issue_to_address>
**Require tags on main**
The issue asks for the release tag to be on main. The workflow still documents and checks dev as the required branch.
</issue_to_address>
### Comment 3
<location path=".github/workflows/release.yml" line_range="302" />
<code_context>
+ # the Contributing page of the documentation), the tags and the
+ # existing releases, before anything is published
+ - name: Check the release notes
+ uses: elixir-cloud-aai/.github/actions/publish-release@31f22fccc1f3c597ed7c1d1f75b2f85522155348 # v1.1.0
+ with:
+ notes: docs/releases/${{ steps.version.outputs.version }}.md
</code_context>
<issue_to_address>
**Create and publish a draft**
The issue asks for a draft release created with --verify-tag and published at the end. This action creates the release directly, without a draft or a later publish step; the PR notes this difference.
</issue_to_address>Sourcery assessment
Needs a human reviewer. 3 findings to address first, and the new tag-signature check controls which tagged commits can proceed to release, and the pinned shared action creates a public GitHub release. If the check accepts an unverified tag, reverting the workflow would not undo a release already created, although that release can be removed or corrected.
Blocking findings: .github/workflows/release.yml:137, .github/workflows/release.yml:3, .github/workflows/release.yml:302
Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_011FSoqMpmDCfbACLj3uy6xV
Summary
Aligns the release workflow with the org's pattern:
preparechecks that the tag is annotated and has a signature that GitHub verified (via the API), and checks the curated notesdocs/releases/<version>.md, the tags and existing releases with the shared actionelixir-cloud-aai/.github/actions/publish-release(v1.1.0,check-only), before anything is staged.publishcreates the GitHub release with the same action: curated notes, then GitHub's generated notes under## Commitsand the Full Changelog line;--verify-tag, and the tag must point to the built commit.Note: the issue mentions creating a draft and publishing it at the end. The shared action (v1.1.0) creates the release in one step and refuses to run if a draft exists; with the release created last, after staging, this matches what the org's other repos do through the same action.
Closes #568
Verification
release.yml: no findings.release.yml: no findings.Review
Full review (release workflow): adversarial and quality reviewers, two rounds. Fixed: wrong description of a draft step, re-run behaviour (use "Re-run failed jobs"), draft releases block
prepare, notes example and link to the action's rules, single tag lookup and the reason for an unverified signature, wrapping.Declined review findings
Open questions
None for this PR. Before the next release: the next version needs
docs/releases/<version>.mdin the version bump PR; a fork dry run on a test tag would exercise the new steps end to end.🤖 Generated with Claude Code
https://claude.ai/code/session_011FSoqMpmDCfbACLj3uy6xV
Summary by Sourcery
Align the release workflow with the organization’s verified-tag checks and shared release publishing process.
Enhancements:
Documentation: