[CI Platform] Enabled module publishing from feature branch prerelease publishing without publishing stable version #3906
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description
Allowed filtering for the modules to be published to only include
prerelease
version if the feature branch is not Main/Master.What was happening is that if I want to deploy the module pipeline for the first time and I am on a feature branch, if I attempt to publish into TS/BR/AzArtifacts, then it will publish stable versions along side the preview version. This should not happen as the branch is not main.
Also updated the set readme where
[1]
split filter was causing issues in the customer environment. Made it[-1]
to align with other split filters in the script, as we always want to take the last element from the filter.Finally, added warning if the profile is not loaded. This scenario happens when self-hosted agents are used, and causes random profile load failures.
Pipeline references
Type of Change
Screenshots from ADO and GH for scenarios on feature branch and on main
Feature Branch
GitHub Actions
Azure DevOps
Main Branch
Checklist