◐ Shell
clean mode source ↗

Skip Store Publish when No Channel Seleceted by jshigetomi · Pull Request #27334 · PowerShell/PowerShell

PR Summary

This pull request updates the release pipeline scripts to improve handling when no release channel (LTS, Stable, or Preview) is selected. Instead of failing the pipeline, the scripts now skip the Store package creation and publish steps gracefully, and set variables to ensure downstream tasks are also skipped.

Pipeline robustness and conditional execution:

  • Updated the channel selection logic in .pipelines/templates/package-store-package.yml and .pipelines/templates/release-MSIX-Publish.yml to skip Store package creation/publish with a warning when no valid channel is detected, rather than causing the pipeline to fail. [1] [2]
  • Set the SkipStorePublish variable and related channel flags to ensure any downstream tasks conditioned on these are properly skipped.
  • Added a condition to the 'Upload StoreBroker Package' step so it only runs if SkipStorePublish is not set to true.

PR Context

This is to prevent pipeline failure when a channel like preview, LTS, or stable isn't selected, like for v7.5.X

PR Checklist