Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Move version generation from Publish to Build step #176

Copy link
Copy link
@MariusStorhaug

Description

Context

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
Reactions are currently unavailable

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      Morty Proxy This is a proxified and sanitized view of the page, visit original site.