Skip to content

chore: deploy on release tags instead of every push to main - #156

Merged
Gabekoder merged 2 commits into
mainfrom
chore/tag-based-releases
Nov 2, 2026
Merged

Gabekoder merged 2 commits into
mainfrom
chore/tag-based-releases

Conversation

@Gabekoder

Copy link
Copy Markdown
Contributor

Summary

Moves Fadderuka to the same release model as voting and Photon: one branch (main), and a production deploy is a tag, not a merge.

  • scripts/cut-release.ts copied from voting (git-tag numbering, no changelog/GitHub Release). Run with bun run cut-release (or --dry-run). It checks you're on a clean main in sync with origin/main, then creates and pushes <YYYY-MM-DD>.release-<n>.
  • deploy.yml (GHCR → Drift) now triggers on those tags plus workflow_dispatch, instead of on every push to main. cancel-in-progress is now false so a deploy is never cut off halfway.
  • ci.yml no longer lists dev; dev will be deleted after this merges.
  • Adds @types/bun as a dev dependency so the script typechecks (tsc and eslint are clean).
  • README gets a Release section.

After merging

  1. Make main the default branch and delete dev.
  2. Wait for CI to go green on the merge commit, then bun run cut-release → 2026-11-02.release-1.

Note: merging this does not deploy (the trigger is now tags), so nothing goes live until the first release is cut.

🤖 Generated with Claude Code

- Add scripts/cut-release.ts (copied from voting) and `bun run cut-release`
- deploy.yml now triggers on <YYYY-MM-DD>.release-<n> tags, not pushes to main
- Drop dev from ci.yml, since main becomes the only branch
- Add @types/bun so the script typechecks
- Document the release flow in the README

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Copilot AI balanced review requested due to automatic review settings November 2, 2026 16:33
@vercel

vercel Bot commented Nov 2, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
fadderuke-test Ready Ready Preview Nov 2, 2026 4:45pm UTC

Request Review

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.

Copilot was unable to review this pull request because the user who requested the review has insufficient remaining quota. Try requesting a review at a lower effort level.

An organization owner can choose the repository organization as the billing source for reviews requested by members with a paid Copilot license. Learn about Copilot code review billing.

@coderabbitai

coderabbitai Bot commented Nov 2, 2026 •

Copy link
Copy Markdown

Review in Change Stack →

Important

Review skipped

Auto reviews are disabled on this repository. Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

Run configuration
  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: Organization UI
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 8485bb73-0f97-4fbd-9741-1032a1f146bb

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • Trigger review

Walkthrough

The changes add a Bun command that checks repository state, selects and pushes an annotated release tag, and supports a dry run. CI now targets main only. The deployment workflow runs on matching release tags or manual dispatch, and no longer cancels an in-progress run for the same workflow and ref. The README documents the release process and related CI and migration details.

Suggested reviewers: mathiasstrom

Merge Risk: Low · previous review 1e457

The release flow is safe to merge. Tag the confirmed commit explicitly and clean up the local tag when a push fails, so release attempts are predictable.

Pre-merge checks: Passed 4 · Failed 1

Failed Failed checks: 1 warning

Check name Status Explanation Resolution
Docstring Coverage Warning Docstring coverage is 0.00% which is insufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff with cyclomatic complexity of at least 2. Documentat… Write docstrings for the functions missing them to satisfy the coverage threshold.
Passed Passed checks: 4 passed
Check name Status Explanation
Title check Passed The title clearly and concisely describes the primary change: deployment now runs on release tags instead of every push to main.
Description check Passed The description accurately explains the release-tag deployment flow, release script, workflow changes, CI branch update, dependency, documentation, and post-merge steps.
Linked Issues check Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check Passed Check skipped because no linked issues were found for this pull request.
Full details: Docstring Coverage

Explanation

Docstring coverage is 0.00% which is insufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff with cyclomatic complexity of at least 2. Documentation-only edits and deletions within surviving functions are included; unchanged diff context and fully deleted functions are excluded. Analyzed 1 functions across 1 files. (4 skipped: 4 unsupported.)

Resolution

Write docstrings for the functions missing them to satisfy the coverage threshold.

  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

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

@coderabbitai coderabbitai 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.

  • Fix comments: Fix CodeRabbit comments on this PR

Comment thread scripts/cut-release.ts Resolved
Comment thread scripts/cut-release.ts Resolved
…push fails

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@Gabekoder
Gabekoder merged commit 46628ce into main Nov 2, 2026
4 checks passed
@Gabekoder
Gabekoder deleted the chore/tag-based-releases branch November 2, 2026 17:40

This branch was successfully deployed

1 active deployment
Preview — c2047e8f Deployed Nov 2, 2026 by vercel[bot]
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.

2 participants