Skip to content

[release/v7.6.4] Separate NuGet publish into its own stage after pushing the git tag#27652

Open
SeeminglyScience wants to merge 1 commit into
PowerShell:release/v7.6.4from
SeeminglyScience:backport/release/v7.6.4/27611-36cd02b33
Open

[release/v7.6.4] Separate NuGet publish into its own stage after pushing the git tag#27652
SeeminglyScience wants to merge 1 commit into
PowerShell:release/v7.6.4from
SeeminglyScience:backport/release/v7.6.4/27611-36cd02b33

Conversation

@SeeminglyScience

Copy link
Copy Markdown
Contributor

Backport of #27611 to release/v7.6.4

Triggered by @SeeminglyScience 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)

Separates NuGet publishing into a dedicated stage that runs after the git tag is pushed and the draft release is made public, ensuring correct ordering in the release pipeline. Required for the 7.6.4 release pipeline to function correctly.

Customer Impact

  • Customer reported
  • Found internally

Regression

REQUIRED: Check exactly one box.

  • Yes
  • No

This is not a regression.

Testing

This is a pipeline restructuring change. Verified by reviewing the YAML diff and confirming stage dependencies are correctly set. The 7.4.x and 7.5.x backports (#27648, #27650) are already open and serve as reference for the expected shape of the change.

Risk

REQUIRED: Check exactly one box.

  • High
  • Medium
  • Low

Pure CI/pipeline change that only affects the release pipeline structure. No runtime code changes. The same change was successfully applied to 7.4.x and 7.5.x branches.

…owerShell#27611)

Co-authored-by: Justin Chung <chungjustin@microsoft.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
Copilot AI review requested due to automatic review settings July 2, 2026 17:58
@SeeminglyScience SeeminglyScience requested review from a team and jshigetomi as code owners July 2, 2026 17:58
@SeeminglyScience SeeminglyScience added the CL-BuildPackaging Indicates that a PR should be marked as a build or packaging change in the Change Log label Jul 2, 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

Backports the release-pipeline restructuring to release/v7.6.4 by separating NuGet publishing into its own stage that runs only after the git tag is pushed and the GitHub draft release is made public, improving release sequencing correctness.

Changes:

  • Split the former combined GitHub+NuGet publish stage into PublishGitHubRelease and PublishNugetRelease, with explicit stage dependencies to enforce ordering.
  • Added a dedicated NuGet publishing template (release-Nuget.yml) and wired it into the new stage.
  • Removed the NuGet publishing job from the GitHub release template (release-github.yml) so it only handles GitHub release drafting.

Reviewed changes

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

File Description
.pipelines/templates/stages/PowerShell-Release-Stages.yml Splits GitHub vs NuGet publishing into separate stages and updates stage dependencies/order.
.pipelines/templates/release-Nuget.yml New template encapsulating NuGet package publish job/steps.
.pipelines/templates/release-github.yml Removes NuGet publish job so the template focuses on GitHub release draft creation.

Comment thread .pipelines/templates/stages/PowerShell-Release-Stages.yml
Comment thread .pipelines/templates/stages/PowerShell-Release-Stages.yml
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.

3 participants