Can't access prerelease option when building versioning strategy #2132
Labels
priority: p3
Desirable enhancement or fix. May not be included in next release.
type: feature request
‘Nice-to-have’ improvement, new feature or different behavior or design.
Is your feature request related to a problem? Please describe.
I would like to use the
prerelease
option to control the versioning strategy used. Currently this isn't possible without some workarounds sinceprerelease
is not part of theVersioningStrategyFactoryOptions
interface.Describe the solution you'd like
Add
prerelease
to theVersioningStrategyFactoryOptions
interface so it is available whenbuildVersioningStrategy
is called. Then in my code I would be able to do:Describe alternatives you've considered
Using the
versioning-strategy: "prerelease"
config instead. This will work but I would like to only have to setprerelease: true
and then use that flag to change the versioning strategy at runtime.Additional context
This might be considered overloading the
prerelease
option, since it currently only controls whether the GitHub release is a prerelease or not. But I think making it available to the versioning strategy makes sense outside of my use case as well.The text was updated successfully, but these errors were encountered: