Describe the bug
Scenario: First time developing a module, and I am on a feature branch, never published before.. I do my work and I commit to source control, I want to run the module pipeline, but tick the
prerelease
option so I can get a test version out.. When the publish happens.. I noticed that not just a
prerelease
gets created, but a whole lot of versions along side..

To reproduce
Create a new module in a feature branch.
deploy the pipeline with a prerelease parameter.
The published module will contain other versions not just prerelease
Code snippet
foreach($missingModule in $missingModules) {
if($modulsToPublish.TemplateFilePath -notcontains $missingModule.TemplateFilePath) {
$modulesToPublish += $missingModule
}
}
Relevant log output
No response
Describe the bug
Scenario: First time developing a module, and I am on a feature branch, never published before.. I do my work and I commit to source control, I want to run the module pipeline, but tick the
prerelease
option so I can get a test version out.. When the publish happens.. I noticed that not just a
prerelease
gets created, but a whole lot of versions along side..
To reproduce
Create a new module in a feature branch.
deploy the pipeline with a
prereleaseparameter.The published module will contain other versions not just
prereleaseCode snippet
Relevant log output
No response