Fix auto-release: trigger on merge to main, add PR version comments#14
Merged
Fix auto-release: trigger on merge to main, add PR version comments#14
Conversation
- Add auto-release.yml: runs release-it automatically when commits land on main (skips release commits to avoid loops) - Add pr-version-check.yml: comments on PRs with the expected version bump (major/minor/patch) or errors from conventional commit analysis - Update release-web/desktop/mobile workflows to also trigger on GitHub release published events, enabling the full CD pipeline: merge -> auto-release -> tag + GitHub release -> deploy workflows - Keep existing workflow_dispatch triggers for manual overrides https://claude.ai/code/session_01Mu841ZmkkUqmLw4wtPGhkT
Contributor
Release Version Check
This version will be released automatically when this PR is merged to Changelog preview0.2.0 (2026-03-05)Features
Bug Fixes
Refactoring
Documentation
Tests
CI/CD
Chores
|
Contributor
Preview DeploymentThe web app for this PR has been deployed: Use this to verify the app works correctly, especially for dependency updates. |
The actions/checkout@v4 creates a detached HEAD for PRs, causing release-it to fail with "ref HEAD is not a symbolic ref". Fix by checking out the actual PR branch ref and setting up upstream tracking. https://claude.ai/code/session_01Mu841ZmkkUqmLw4wtPGhkT
Adds a collapsible "Changelog preview" section to the PR version comment showing which sections (Features, Bug Fixes, etc.) and entries will be added to the changelog when the PR is merged. https://claude.ai/code/session_01Mu841ZmkkUqmLw4wtPGhkT
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
auto-release.ymlworkflow runsrelease-it --ciwhenever commits land onmain, using conventional commits to determine the version bump. Skips release commits (chore: release v*) to prevent infinite loops.pr-version-check.ymlworkflow comments on every PR with the expected version bump (major/minor/patch), the current and next version numbers, or any errors encountered during version analysis. Updates the comment on each push.release-web.yml,release-desktop.yml, andrelease-mobile.ymlto trigger onrelease: publishedevents in addition to tag pushes and manual dispatch. This completes the CD pipeline: merge to main -> auto-release creates tag + GitHub release -> deploy workflows run.How it works
Manual
workflow_dispatchtriggers are preserved on all workflows for override capability.Test plan
feat:commit and verify auto-release creates a new versionhttps://claude.ai/code/session_01Mu841ZmkkUqmLw4wtPGhkT