Skip to content

ci: auto-release on push when new version detected#14

Merged
bntvllnt merged 2 commits intomainfrom
ci/auto-release
Mar 31, 2026
Merged

ci: auto-release on push when new version detected#14
bntvllnt merged 2 commits intomainfrom
ci/auto-release

Conversation

@bntvllnt
Copy link
Copy Markdown
Collaborator

Summary

  • Replace manual workflow_dispatch release with auto-detection on push to main
  • check-version job: compares package.json version to git tags
    • No tag for current version → full release (git tag + npm publish + GitHub Release with CHANGELOG.md notes)
    • Tag exists → canary publish only
  • Update CLAUDE.md and AGENTS.md with new flow

Flow

push to main
  → quality gates (test)
  → check-version (tag v{version} exists?)
    → NO  → release (tag + npm latest + GitHub Release)
    → YES → canary (npm canary)

Test plan

  • pnpm test passes
  • Merge → v1.0.1 tag exists → canary runs, release skips
  • Next version bump (1.0.2) → auto-release triggers

Replace manual workflow_dispatch with auto-detection:
- check-version job compares package.json version to git tags
- No tag → full release (tag + npm publish + GitHub Release)
- Tag exists → canary publish only
- Release notes extracted from CHANGELOG.md
Copy link
Copy Markdown

@greptile-apps greptile-apps bot left a comment

Choose a reason for hiding this comment

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

Your free trial has ended. If you'd like to continue receiving code reviews, you can add a payment method here.

@bntvllnt bntvllnt self-assigned this Mar 31, 2026
No longer pushing commits to main — only tags + releases.
GITHUB_TOKEN with contents:write is sufficient.
@bntvllnt bntvllnt merged commit 64a91f9 into main Mar 31, 2026
3 checks passed
@bntvllnt bntvllnt deleted the ci/auto-release branch March 31, 2026 16:22
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