Flip Stable PublishToChannel false for v7.5.X#27333
Conversation
There was a problem hiding this comment.
Pull request overview
Updates the release metadata used by pipeline templates to disable publishing stable releases to channel-based destinations while still allowing package creation.
Changes:
- Flip
StableRelease.PublishToChannelsfromtruetofalseintools/metadata.json.
| "NextReleaseTag": "v7.5.0-preview.4", | ||
| "LTSRelease": { "PublishToChannels": false, "Package": false }, | ||
| "StableRelease": { "PublishToChannels": true, "Package": true } | ||
| "StableRelease": { "PublishToChannels": false, "Package": true } |
There was a problem hiding this comment.
Setting StableRelease.PublishToChannels to false makes ChannelSelection.IsStable evaluate to false for non-preview builds, which leads to "No valid channel detected" failures in downstream release templates (e.g., release-MSIX-Publish.yml and package-store-package.yml) because they require exactly one channel to be true. To disable publishing without breaking the pipeline, consider separating "is stable build" from "publish stable to channels" (e.g., keep IsStable derived from the tag/build type and gate publish steps with a separate publish flag), or ensure the MSIX/Store publish stages/jobs are fully skipped when stable publishing is disabled.
| "StableRelease": { "PublishToChannels": false, "Package": true } | |
| "StableRelease": { "PublishToChannels": true, "Package": true } |
| "NextReleaseTag": "v7.5.0-preview.4", | ||
| "LTSRelease": { "PublishToChannels": false, "Package": false }, | ||
| "StableRelease": { "PublishToChannels": true, "Package": true } | ||
| "StableRelease": { "PublishToChannels": false, "Package": true } |
There was a problem hiding this comment.
PR title/description mention preventing 7.5.x from publishing to stable channels, but this flag disables stable-channel publishing for all stable (non-preview) builds produced from this branch. If the intent is specific to 7.5.x only, it may be worth confirming this PR targets the correct release branch and that disabling stable publishing here won’t unintentionally affect other stable servicing releases that use the same pipeline config.
PR Summary
This pull request makes a small change to the release configuration in the
tools/metadata.jsonfile. The update disables publishing to channels for stable releases, while still allowing package creation.PR Context
This is to prevent 7.5.X which from publishing to stable channels.
PR Checklist
.h,.cpp,.cs,.ps1and.psm1files have the correct copyright header