go-semantic-release / semantic-release

📦🚀 semantic-release written in Go
https://go-semantic-release.xyz
MIT License
404 stars 43 forks source link

How to release patches for older version #108

Closed deveshk0 closed 3 years ago

deveshk0 commented 3 years ago

I have a branch setup like release-1 and release-2 which releases version like 1.x.x and for release-2 -- 2.x.x. How i can release a patch from release release-1 branch, default branch is switched to release-2

christophwitzko commented 3 years ago

Hi @deveshk0, this can be solved by committing a .semrelrc file in your branch with the content:

{
  "maintainedVersion": "1"
}

This will tell semantic-release to stay in the 1.x.x version range and you can release patches and features for the older v1 release.

deveshk0 commented 3 years ago

Thanks, Working fine for me.