Skip to content

fix releases: make protected-branch publishing repeatable - #128

Merged
Light2Dark merged 2 commits into
mainfrom
codex/release-v0.3.9
Sep 4, 2026
Merged

fix releases: make protected-branch publishing repeatable#128
Light2Dark merged 2 commits into
mainfrom
codex/release-v0.3.9

Conversation

@Light2Dark

Copy link
Copy Markdown
Member

This pull request was authored by a coding agent.

The v0.3.9 release exposed two failure modes in the tag-based process. The publish job tried to configure pnpm before downloading the package metadata, and the version command created an immutable tag before its commit could enter protected main.

This change records the published v0.3.9 version on main, downloads the package artifact before configuring pnpm, and makes pnpm release prepare only the version change. The release workflow now rejects a mismatched tag or a commit that is not on main. The README documents the short prepare, merge, and tag procedure.

Written by GPT-5.6 on Codex

@github-actions

github-actions Bot commented Sep 4, 2026

Copy link
Copy Markdown

Coverage Report

Status Category Percentage Covered / Total
🔵 Lines 48.77% 1037 / 2126
🔵 Statements 48.77% 1037 / 2126
🔵 Functions 42.74% 56 / 131
🔵 Branches 87.55% 190 / 217
File CoverageNo changed files found.
Generated in workflow #505 for commit 3b4222b by the Vitest Coverage Report Action

@Light2Dark
Light2Dark marked this pull request as ready for review September 4, 2026 12:03
Copilot AI lite review requested due to automatic review settings September 4, 2026 12:03

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

🟢 Approval recommended

The workflow and documentation changes align with the stated failure modes and add concrete safeguards without introducing apparent release-breaking behavior.

Pull request overview

This PR makes the tag-triggered npm release process repeatable with protected main by ensuring version preparation happens on a mergeable branch, and by adding workflow guardrails so publishing only happens from an on-main commit with a matching tag/version.

Changes:

  • Document a “prepare on branch → merge → tag from main” release procedure in the README.
  • Update pnpm release to bump the version without creating a git tag.
  • Harden the release workflow by validating tag/version alignment, ensuring the tagged commit is on main, and downloading the package artifact before setting up pnpm in the publish job.
File summaries
File Description
README.md Adds a documented, protected-branch-friendly release procedure (prepare, merge, tag).
package.json Records v0.3.9 on main and changes the release script to avoid creating tags locally.
.github/workflows/release.yml Adds tag/branch validation and reorders publish steps to download the artifact before pnpm setup.
Review details
  • Files reviewed: 3/3 changed files
  • Comments generated: 0
  • Review effort level: Lite

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

@cubic-dev-ai cubic-dev-ai Bot 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.

No issues found across 3 files

Re-trigger cubic

@Light2Dark
Light2Dark merged commit 3b4222b into main Sep 4, 2026
7 checks passed
@Light2Dark
Light2Dark deleted the codex/release-v0.3.9 branch September 4, 2026 12:21
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.

3 participants