Skip to content

Support flexible tag format: VariableString-${version} #671

Open
@rcarre

Description

@rcarre

[semantic-release] › ℹ Running semantic-release version 24.0.0

I do expect this kind of tag format x.y.z+myCompany-${version} where semantic version ${version} does not care about prepend string x.y.z+myCompany- and then ${version} is continuously incremented based on last commit msg :

  • 25.1+myCompany-1.0.0
  • 25.1+myCompany-1.0.1
  • 25.2.1+myCompany-1.1.0
  • 25.2.1+myCompany-1.1.1
  • 25.2.1+myCompany-2.0.0
  • 25.3.0+myCompany-2.1.0

However and by default, each new x.y.z+myCompany- makes actually ${version} to restart from 1.0.0:

  • 25.1+myCompany-1.0.0
  • 25.1+myCompany-1.0.1
  • 25.2.1+myCompany-1.0.0
  • 25.2.1+myCompany-1.1.0
  • 25.2.1+myCompany-2.0.0
  • 25.3.0+myCompany-1.0.0

I had a look to Conventional Changelog and commit and tag version to find a way customize this default behavior ... but did not find a lead.

Any advice highly appreciated.
Thx

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions