Skip to content

Add label-driven automatic release pipeline#7

Merged
rmarinsky merged 2 commits into
mainfrom
feat/release-automation
May 14, 2026
Merged

Add label-driven automatic release pipeline#7
rmarinsky merged 2 commits into
mainfrom
feat/release-automation

Conversation

@rmarinsky

Copy link
Copy Markdown
Owner

What

Replaces the fragile manual release flow with a label-driven pipeline.

New flow: open PR → add one release:* label → merge → CI tags, builds, notarizes, signs, publishes the GitHub Release, and updates the Sparkle appcast on gh-pages.

Why

The v1.7.2 release CI failed on a duplicate-run race; v1.14.1 (Diduny) failed because the appcast-commit step can't write to protected main. This removes both failure classes:

  • concurrency guard → no duplicate-run races
  • appcast publishes to the unprotected gh-pages branch → never touches main
  • version comes from the git tag → no manual bumping

Files

  • new release-label-check.yml, prepare-release.yml, scripts/release/next-version.sh
  • changed release.yml (concurrency + workflow_dispatch + version-from-tag + appcast→gh-pages + idempotent release), release.sh, CLAUDE.md

Prereqs already done

  • release:{patch,minor,major,skip} labels created
  • gh-pages branch seeded with current appcast.xml; Pages source switched to gh-pages

No PAT needed.

Replaces the manual "bump version, tag by hand, hope the appcast commit
to main works" flow that kept breaking. New flow:

  PR + one release:* label  ->  merge  ->  CI does everything

- release-label-check.yml: PR gate — requires exactly one
  release:{patch,minor,major,skip} label, comments the next version.
- prepare-release.yml: on PR merge, computes the next version from the
  latest tag, pushes the tag, dispatches release.yml. Never commits to main.
- release.yml: adds a concurrency guard (kills the duplicate-run race that
  lost the v1.7.2 release), injects MARKETING_VERSION from the tag, makes
  the GitHub release idempotent, and publishes appcast.xml to the dedicated
  gh-pages branch instead of writing back to protected main.
- next-version.sh: pure tag math, shared by the workflows and humans.
- release.sh: local builds also take the version from the latest git tag.
- CLAUDE.md: documents the process and the "never push to main" rule.

No PAT required — the tag is pushed with GITHUB_TOKEN and release.yml is
started via explicit workflow_dispatch.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
@coderabbitai

coderabbitai Bot commented May 14, 2026

Copy link
Copy Markdown

Warning

Rate limit exceeded

@rmarinsky has exceeded the limit for the number of commits that can be reviewed per hour. Please wait 50 minutes and 41 seconds before requesting another review.

You’ve run out of usage credits. Purchase more in the billing tab.

⌛ How to resolve this issue?

After the wait time has elapsed, a review can be triggered using the @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

We recommend that you space out your commits to avoid hitting the rate limit.

🚦 How do rate limits work?

CodeRabbit enforces hourly rate limits for each developer per organization.

Our paid plans have higher rate limits than the trial, open-source and free plans. In all cases, we re-allow further reviews after a brief timeout.

Please see our FAQ for further information.

ℹ️ Review info
⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro

Run ID: d39be018-c5ef-4fbb-95df-ea3ca13048bf

📥 Commits

Reviewing files that changed from the base of the PR and between 03b8d11 and 6d3f45a.

📒 Files selected for processing (6)
  • .github/workflows/prepare-release.yml
  • .github/workflows/release-label-check.yml
  • .github/workflows/release.yml
  • CLAUDE.md
  • release.sh
  • scripts/next-version.sh
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch feat/release-automation

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

scripts/release/ matched the `release/` .gitignore rule, so the helper
never got committed. Use scripts/next-version.sh instead.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
@rmarinsky rmarinsky merged commit f93930c into main May 14, 2026
0 of 2 checks passed
@rmarinsky rmarinsky deleted the feat/release-automation branch May 14, 2026 20:30
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.

1 participant