You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is it possible to allow customizing the default monorepo tag format injected in context.nextRelease ? (currently it is <package-name>-v-<version>)
In my case, one of the packages in the monorepo is named: @nxrocks/nx-spring-boot. So the plugin
renders @nxrocks/nx-spring-boot-v-<version>, while I would like simply nx-spring-boot/v-<version>...
With the global tagFormat I was able to change the name of the created tag, but this name is not applied everywhere, in particular not in the context.nextRelease.version. Instead, the default format is picked up by the other plugins like @semantic-release/release-notes-generator.
Hi @tinesoft and thanks for the thorough issue report! Off-hand, I can't think of a reason why version-to-git-tag shouldn't be using tagFormat. I'll have a look soon!
Having the same problem. We have changelog files in each of the repos and we'd like to customize the header as we aren't even publishing npm packages so that name is just a placeholder.
Hi @pmowrer
First of all, thanks for this awesome project! Exactly what I was looking for to release my Nx-based monorepo (https://github.com/tinesoft/nxrocks).
Is it possible to allow customizing the default monorepo tag format injected in
context.nextRelease
? (currently it is<package-name>-v-<version>
)In my case, one of the packages in the monorepo is named:
@nxrocks/nx-spring-boot
. So the pluginrenders
@nxrocks/nx-spring-boot-v-<version>
, while I would like simplynx-spring-boot/v-<version>
...With the global
tagFormat
I was able to change the name of the created tag, but this name is not applied everywhere, in particular not in thecontext.nextRelease.version
. Instead, the default format is picked up by the other plugins like@semantic-release/release-notes-generator
.Here is a sample: https://github.com/tinesoft/nxrocks/releases/tag/nx-spring-boot%2Fv2.0.0-beta.1
I believe it is because the default monorepo tag format is hardcoded here:
semantic-release-monorepo/src/version-to-git-tag.js
Line 9 in 413a570
the
name
is read from the package viaconst { name } = await readPkg();
An option could be added to allow customizing it.
This is what my
.releaserc
file looks like:The text was updated successfully, but these errors were encountered: