Skip to content

ci(release): cut a release automatically on every merge to main - #18

Merged
flyingwebie merged 1 commit into
mainfrom
chore/auto-release
Nov 3, 2026
Merged

flyingwebie merged 1 commit into
mainfrom
chore/auto-release

Conversation

@flyingwebie

Copy link
Copy Markdown
Owner

What changed

  • .github/workflows/auto-release.yml (new) runs on every push to main and calls scripts/prepare-release.ts to decide:
    • package.json version has no v<version> tag (a hand-prepared release) → release it as-is
    • PR title is feat / fix / perf / revert → bump the patch (minor for !), move ## Unreleased changelog notes under a dated heading (or use the PR title), commit chore(release): <version>, tag, release
    • anything else (docs, chore, test, refactor, upstream syncs) → no release
  • release.yml is now also a reusable workflow taking a tag input, because a tag pushed with GITHUB_TOKEN never triggers it. Manual tag pushes still work.
  • CHANGELOG.md: the 0.0.24 notes now cover the PRs merged after it was prepared (version display, upload types, CLI, MCP fixes).
  • docs/deployment/release-workflow.md describes the new flow.

Why

Releases only happened when someone pushed a tag. Features merged since Oct 6 (including the running-version display) never reached the deployed image. The last release was v0.0.22.

Impact

  • Merging this PR releases 0.0.24 (prepared but never tagged).
  • After that, every feature or fix merge publishes ghcr.io/flyingwebie/instatic:<version> and :latest, plus the GitHub Release.
  • Coolify still redeploys manually unless it follows :latest with auto-update.

Verification

  • bun test scripts/prepare-release.test.ts: 9 pass
  • Local dry runs of the script covering the prepared, bump and skip paths
  • bun run build, bun test (7678 pass, 0 fail) and bun run lint all pass
  • The workflows themselves only run on GitHub. Watch the first Auto Release run after merging.

🤖 Generated with Claude Code

Releases only happened when someone remembered to push a tag, so merged
features (the version display, upload types, the CLI) sat on main for weeks
without reaching the deployed image.

- `auto-release.yml` runs on every push to main and asks
  `scripts/prepare-release.ts` what to do: an untagged prepared version is
  released as-is; a feat/fix/perf/revert PR bumps the patch (minor for `!`)
  and moves the Unreleased changelog notes under a dated heading; anything
  else is skipped.
- `release.yml` is also a reusable workflow taking the tag, since a tag pushed
  with GITHUB_TOKEN never triggers it. Manual tag pushes still work.
- The 0.0.24 changelog now covers the PRs merged after it was written; it
  ships as the first automatic release.

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

coderabbitai Bot commented Nov 3, 2026 •

Copy link
Copy Markdown

Review in Change Stack →

Caution

Review failed

The pull request is closed.

  • 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

CodeRabbit Verify

  • Run CodeRabbit Verify to test the changes in this pull request.

@flyingwebie
flyingwebie marked this pull request as ready for review November 3, 2026 13:43
@flyingwebie
flyingwebie merged commit 4e3326c into main Nov 3, 2026
4 checks passed
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