You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Move version generation from Publish to Build step #176
In the current Process-PSModule workflow, version numbers are generated during the Publish step. This means the artifact that is tested may not be identical to the artifact that is published, since the version is stamped after testing.
Request
Version generation should be moved from the Publish step to the Build step. This ensures the artifact is fully versioned before testing, so what gets tested is exactly what gets published. Additionally, having a versioned prerelease artifact available after build enables sharing it with other workflows (e.g., PSModule/GitHub-Script action tests).
What is expected
The Build step produces a fully versioned module artifact (including prerelease tags if applicable)
The Test step tests the exact versioned artifact
The Publish step publishes the same unaltered artifact
Prerelease artifacts are available for downstream consumption after the build step
Acceptance criteria
Version number is determined and applied during the Build step
The tested artifact is byte-identical to the published artifact
Prerelease artifacts can be consumed by other workflows
Technical decisions
To be determined during implementation planning — evaluate how version information is currently generated and where it gets stamped into the manifest.
Implementation plan
Identify where version generation currently occurs in the Publish step
Move version calculation logic to the Build step
Apply the version to the module manifest during build
Ensure the Test step uses the versioned artifact
Ensure the Publish step publishes without modifying the artifact
Make the prerelease artifact available for downstream workflows
Test the full build → test → publish pipeline with the new ordering
Cross-reference: The version generation logic duplication between Publish-PSModule and Release-GHRepository has been analyzed in detail in #326 (Extract shared versioning and release logic). Moving version generation to the Build step depends on first extracting the shared versioning module described there. See also #330 for the full SRP refactoring of Publish-PSModule.
Activity
[-]🩹 [Patch]: Move versioning from Publish to Build[/-][+]Move version generation from Publish to Build step[/+]MariusStorhaug commentedon Apr 5, 2026
Restructured issue description into the standard three-section format.
Minorlabel (architectural improvement)MariusStorhaug commentedon May 3, 2026
Cross-reference: The version generation logic duplication between
Publish-PSModuleandRelease-GHRepositoryhas been analyzed in detail in #326 (Extract shared versioning and release logic). Moving version generation to the Build step depends on first extracting the shared versioning module described there. See also #330 for the full SRP refactoring of Publish-PSModule.MariusStorhaug commentedon May 16, 2026
This can be closed as a duplicate.