Closed Cid53 closed 2 years ago
Hey, @Cid53,
Ok, seems fine, but let's simplify this a bit.
We can introduce --tag-format
instead in lodash template notation as just like semrel expects:
...
tagFormatCtx = {
name,
version: '${version}'
}
tagFormatDefault = '${name}@${version}'
tagFormat = template(options.tagFormat || tagFormatDefault)(tagFormatCtx)
@antongolub Sounds good! I wasn't sure how important it was to enforce the package name to be the first part of the tag.
I made those changes you suggested, thanks!
@Cid53,
The new feature is on the way. Thanks for the contribution.
:tada: This PR is included in version 3.16.0 :tada:
The release is available on:
Your semantic-release bot :package::rocket:
Adds a flag to modify the version format used to create
tagFormat
.Use Case
I'm attempting to use the generated tags to publish Docker images and Docker tags cannot contain an
@
.