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
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-PSModuleVersioncurrently selects the highest version across the Gallery and GitHub Releases. If the Gallery containsv1.2.4but GitHub release creation fails, a rerun resolvesv1.2.5and publishes it, leaving thev1.2.4package without its matching GitHub Release and tag.Release-PSModulecan resume an existing GitHub Release's asset upload, but the workflow must reach that action with the original resolved version first.Acceptance criteria
Related