Skip to content

Make CLI release idempotent#289

Merged
simonsmallchua merged 1 commit into
mainfrom
work/confident-cannon
Apr 3, 2026
Merged

Make CLI release idempotent#289
simonsmallchua merged 1 commit into
mainfrom
work/confident-cannon

Conversation

@simonsmallchua
Copy link
Copy Markdown
Contributor

@simonsmallchua simonsmallchua commented Apr 3, 2026

Summary

  • Force-create temporary version tag (git tag -f) so reruns don't fail on existing tags
  • Add release.mode: replace to goreleaser so it updates existing GitHub releases

Fixes the cli-v0.1.0 release which passed goreleaser but failed at npm publish, then couldn't be retriggered.

Test plan

  • Merge, retag cli-v0.1.0, confirm Release CLI workflow passes through to npm publish

Summary by CodeRabbit

Release Notes

  • Chores
    • Enhanced tag handling in the release workflow to support repeated deployment runs
    • Configured release settings to replace existing releases rather than using default behaviour

@coderabbitai
Copy link
Copy Markdown
Contributor

coderabbitai Bot commented Apr 3, 2026

Caution

Review failed

Pull request was closed or merged during review

📝 Walkthrough

Walkthrough

These changes modify the release process configuration: the CI workflow now force-updates git tags during repeated releases, whilst GoReleaser is configured to replace existing releases rather than follow default handling.

Changes

Cohort / File(s) Summary
CI Workflow Release Tag Management
.github/workflows/release-cli.yml
Updated git tag creation to use force-update flag (git tag -f) instead of failing when tag already exists, allowing repeated release runs without tag conflicts.
GoReleaser Release Configuration
.goreleaser.yml
Added top-level release configuration block with mode: replace to configure GoReleaser to replace existing releases instead of using default handling.
🚥 Pre-merge checks | ✅ 3
✅ Passed checks (3 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title 'Make CLI release idempotent' directly and clearly describes the main objective of the pull request—enabling the CLI release process to be safely re-run without failures.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.


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

@supabase
Copy link
Copy Markdown

supabase Bot commented Apr 3, 2026

Updates to Preview Branch (work/confident-cannon) ↗︎

Deployments Status Updated
Database Fri, 03 Apr 2026 12:37:40 UTC
Services Fri, 03 Apr 2026 12:37:40 UTC
APIs Fri, 03 Apr 2026 12:37:40 UTC

Tasks are run on every commit but only new migration files are pushed.
Close and reopen this PR if you want to apply changes from existing seed or migration files.

Tasks Status Updated
Configurations Fri, 03 Apr 2026 12:37:49 UTC
Migrations Fri, 03 Apr 2026 12:38:23 UTC
Seeding Fri, 03 Apr 2026 12:38:31 UTC
Edge Functions Fri, 03 Apr 2026 12:38:31 UTC

View logs for this Workflow Run ↗︎.
Learn more about Supabase for Git ↗︎.

@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented Apr 3, 2026

🏷️ Release Preview

When this PR is merged, it will automatically create:

  • Version: vcli..1 (patch release)
  • Tag: vcli..1
  • GitHub Release: Pre-release with changelog content

The changelog will be updated and committed automatically.


💡 Tip: Update the changelog heading to control release type:

  • ## [Unreleased] or ## [Unreleased:patch] → patch release (default)
  • ## [Unreleased:minor] → minor release
  • ## [Unreleased:major] → major release

@codecov
Copy link
Copy Markdown

codecov Bot commented Apr 3, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ All tests successful. No failed tests found.

📢 Thoughts on this report? Let us know!

@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented Apr 3, 2026

🐝 Review App Deployed

Homepage: https://hover-pr-289.fly.dev
Dashboard: https://hover-pr-289.fly.dev/dashboard

@simonsmallchua simonsmallchua merged commit 8091137 into main Apr 3, 2026
10 of 11 checks passed
@simonsmallchua simonsmallchua deleted the work/confident-cannon branch April 3, 2026 12:39
@coderabbitai coderabbitai Bot mentioned this pull request Apr 4, 2026
5 tasks
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