no release branches #2120
-
Our implementation of trunk based workflow does not have release branches, but tags from the single long-lived branch, main. How does auto work with the base branch and prerelease branch both being main? What do we need to do in order to release with out release branches? thanks |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 2 replies
-
Hey @tomdavidson! Thanks for your question. This is actually similar to the intended usage pattern for Auto! Merges to |
Beta Was this translation helpful? Give feedback.
-
@sugarmanz thank you for the quick response and I am quite excited about putting auto into play. I thought I was going to need to use the exec plugin and what not but seem like the case is not that different at all. Diffidently do not want another merge branch or my Gerrit friends will make fun :D seriously, I think multiple merge branches are a counter-productive pattern. A successful CI against main can end with We could prob even have a workflow that cuts the release after 10 days of no bug reports or something. |
Beta Was this translation helpful? Give feedback.
-
Thanks for explicit and illustrated explanation! Seems like the only sticky point is promoting an rc (next) as a release.This does have code change if only the changelog so, but it would be better to promote the existing proven artifact rather than building a new one. I need to think about how this could work with GH Actions and Auto and appreciate any additional suggestions. Quite committed to the single trunk. Right now I only have npm targets in the repo with lerna. We have some related Docker images and Crates that I want to be in the same repo but it would be ok to have the three target types in separate works spaces. |
Beta Was this translation helpful? Give feedback.
Hey @tomdavidson! Thanks for your question. This is actually similar to the intended usage pattern for Auto! Merges to
main
will trigger a release and tagmain
. Canary builds (non-tagged, but published prereleases) are done with normal PRs and tagged prereleases are done with anext
branch that you can stage changes on until they're ready for release. If you want to actually publish prereleases offmain
, you'll need to ensure you're calling the right auto command, i.e.auto shipit
for releasing andauto next
for prerelease. But since your workflow is already very similar to the ideal workflow for Auto, I would encourage you to consider publishing prereleases from a staging branch that wou…