Skip to content

🐛 [Bug]: Resume a Gallery-only stable publication on retry #513

Description

Outcome

A retry after PowerShell Gallery publication succeeds but GitHub Release creation fails resumes the same release version instead of publishing a new version for the same commit.

Context

The stable flow correctly publishes to PowerShell Gallery before creating its GitHub Release. Resolve-PSModuleVersion currently selects the highest version across the Gallery and GitHub Releases. If the Gallery contains v1.2.4 but GitHub release creation fails, a rerun resolves v1.2.5 and publishes it, leaving the v1.2.4 package without its matching GitHub Release and tag.

Release-PSModule can resume an existing GitHub Release's asset upload, but the workflow must reach that action with the original resolved version first.

Acceptance criteria

  • A retry detects a Gallery-only publication for the same stable release context and reuses its version.
  • The retry skips duplicate Gallery publication and resumes GitHub Release/tag creation for the exact tested commit.
  • A different commit or release context cannot reuse an unrelated Gallery package.
  • Focused tests cover Gallery success followed by GitHub-release failure, then a rerun.

Related

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions