How to properly release multiple versions #2220
Unanswered
ZauberNerd
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi there 👋
We want to migrate from our custom release bot to a mixture of
auto
andbackport
, but we are having trouble properly configuringauto
.We have a lerna monorepo with multiple release branches and want to be able to:
So we basically have one "active" version which receives new features, one "maintenance" version which receives bug fixes and one "prerelease" version.
Our workflow should look like this:
workflow_dispatch
or viamilestone.closed
eventsWe had to change some default configs to be able to adapt to our workflow:
main
tonext
becauseauto
uses the branch name as prerelease tagv14
,v15
, toversion-14
,version-15
because we didn't want to risk other branches that start withv
to be mistaken as version branches byauto
Here is the
auto
config we're using:Explanation of config options:
auto
(we haven't found a way to entirely disable them, so maybenoDefaultLabels
is good enough)@latest
releases from the currently active version branch (in our caseversion-16
) so we set it asbaseBranch
next
branchWe have been able to make prereleases when calling
auto shipit
from the default branch (next
).But we have not been able to release a new major version.
For that we have committed a
BREAKING CHANGE
and calledauto shipit
on the default branch, but it fails with the following error message:The documentation about managing old versions seems to suggest that
auto
will create theversion-16
branch, which in the error message above did not happen and thus git failed to find the ref.Any help would be appreciated.
Beta Was this translation helpful? Give feedback.
All reactions