Skip to content

[Bug Report]: Publishing a new module from a feature branch with prerelease will create other stable releases #3891

@ahmadabdalla

Description

@ahmadabdalla

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..

image

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

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

Status

Closed

Relationships

None yet

Development

No branches or pull requests

Issue actions