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 from maintenance branches? #125

Closed holtakj closed 2 years ago

holtakj commented 2 years ago

Hi,

How to release from a maintenance branch?

My situation: Last tagged(released) version: v0.4.1 And I want to release a fix for 0.3.x which should be 0.3.17 as 0.3.16 is the last 0.3.x released version.

I`ve tried to release from branches 0.3.x and 0.3.0 and some other variants but the version (I did a dry run) was always 0.4.2.

Thank you.

christophwitzko commented 2 years ago

Hi @holtakj, did you check in a .semrelrc file on your maintenance branch?

{
  "maintainedVersion": "0.3"
}

This tells semantic-release to stay in the 0.3.x range.

holtakj commented 2 years ago

Thanks. that worked fine. Maybe make it clear in the documentation.