Skip to content

[release/v7.5.8] Skip Store Publish when No Channel Seleceted#27572

Merged
SeeminglyScience merged 1 commit into
PowerShell:release/v7.5.8from
TravisEz13:backport/release/v7.5.8/27334-c23c42106
Jun 9, 2026
Merged

[release/v7.5.8] Skip Store Publish when No Channel Seleceted#27572
SeeminglyScience merged 1 commit into
PowerShell:release/v7.5.8from
TravisEz13:backport/release/v7.5.8/27334-c23c42106

Conversation

@TravisEz13

Copy link
Copy Markdown
Member

Backport of #27334 to release/v7.5.8

Triggered by @TravisEz13 on behalf of @jshigetomi

Original CL Label: CL-BuildPackaging

/cc @PowerShell/powershell-maintainers

Impact

REQUIRED: Choose either Tooling Impact or Customer Impact (or both). At least one checkbox must be selected.

Tooling Impact

  • Required tooling change
  • Optional tooling change (include reasoning)

Prevents pipeline failure when no release channel (LTS/Stable/Preview) is selected by skipping Store package creation and publish steps gracefully.

Customer Impact

  • Customer reported
  • Found internally

Regression

REQUIRED: Check exactly one box.

  • Yes
  • No

This is not a regression.

Testing

Pipeline tested by running without a channel selection to verify it skips gracefully instead of failing.

Risk

REQUIRED: Check exactly one box.

  • High
  • Medium
  • Low

Pipeline-only change that adds graceful skip logic when no channel is selected. No runtime code changes.

Co-authored-by: Justin Chung <chungjustin@microsoft.com>
Copilot AI review requested due to automatic review settings June 8, 2026 20:45
@TravisEz13 TravisEz13 requested a review from a team as a code owner June 8, 2026 20:45
@TravisEz13 TravisEz13 added the CL-BuildPackaging Indicates that a PR should be marked as a build or packaging change in the Change Log label Jun 8, 2026

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR backports pipeline logic to release/v7.5.8 to prevent Store package creation and Store publish steps from failing when no release channel (LTS/Stable/Preview) is selected, by skipping those operations gracefully.

Changes:

  • Added task-level conditions in the Store publish template so Store-related steps only run when a valid channel flag is set.
  • Updated Store package creation template to treat “no channel selected” as a non-failure path: emit a warning, set SkipStorePublish, and ensure the artifact output directory exists.
  • Added a condition to the StoreBroker package upload step to skip when SkipStorePublish=true.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.

File Description
.pipelines/templates/release-MSIX-Publish.yml Adds channel-gated conditions to avoid Store publish step failures when no channel is selected.
.pipelines/templates/package-store-package.yml Adds graceful skip path (warning + variable setting + output dir creation) and skips upload when Store publish is disabled.

@SeeminglyScience SeeminglyScience merged commit bb51a6c into PowerShell:release/v7.5.8 Jun 9, 2026
35 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CL-BuildPackaging Indicates that a PR should be marked as a build or packaging change in the Change Log

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants