Skip to content

🪲 [Fix]: Restore correct release versioning in the publish pipeline#363

Merged
Marius Storhaug (MariusStorhaug) merged 4 commits into
mainfrom
fix/326-contain-publish-v3-regression
Jul 7, 2026
Merged

🪲 [Fix]: Restore correct release versioning in the publish pipeline#363
Marius Storhaug (MariusStorhaug) merged 4 commits into
mainfrom
fix/326-contain-publish-v3-regression

Conversation

@MariusStorhaug

@MariusStorhaug Marius Storhaug (MariusStorhaug) commented Jul 7, 2026

Copy link
Copy Markdown
Member

The module publishing pipeline once again calculates and stamps the real release version before publishing, so consumer releases are versioned and tagged correctly instead of shipping the build-time placeholder. This reverts the premature Publish-PSModule major upgrade that left main in an inconsistent state.

Fixed: Releases are versioned correctly again

Publish-PSModule is pinned back to v2.2.4, which calculates the release version (from labels and tags) and stamps it into the module manifest at publish time. On main, Build-PSModule (v4) only stamps a 999.0.0 placeholder and does not compute the real version, and Publish-PSModule v3.0.0 is publish-only — it expects the manifest to already carry the final version. With v3.0.0 in place, nothing in the pipeline computed the real version, so a real consumer release would have published and tagged 999.0.0. Reverting to v2.2.4 restores the fully consistent old pipeline: Get-Settings → Build (v4, 999.0.0) → Publish (v2.2.4, calculates + stamps).

Only the Publish-PSModule pin is reverted. The other action bumps from #358 (actions/checkout v7.0.0, super-linter v8.7.0) are left in place.

Technical Details

@github-actions

github-actions Bot commented Jul 7, 2026

Copy link
Copy Markdown

Super-linter summary

Language Validation result
CHECKOV Pass ✅
GITLEAKS Pass ✅
GIT_MERGE_CONFLICT_MARKERS Pass ✅
MARKDOWN Pass ✅
NATURAL_LANGUAGE Pass ✅
POWERSHELL Pass ✅
PRE_COMMIT Pass ✅
SPELL_CODESPELL Pass ✅
TRIVY Pass ✅
YAML Pass ✅

All files and directories linted successfully

For more information, see the GitHub Actions workflow run

Powered by Super-linter

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

This PR restores correct module release versioning in the publish pipeline by reverting the PSModule/Publish-PSModule action pin to a version that performs version calculation/stamping at publish time, and updates Dependabot to avoid reintroducing premature major upgrades of first-party lifecycle actions.

Changes:

  • Revert PSModule/Publish-PSModule pin from v3.0.0 back to v2.2.4 in the publish workflow.
  • Configure Dependabot to ignore semver-major updates for PSModule/*-PSModule GitHub Actions dependencies.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.

File Description
.github/workflows/Publish-Module.yml Re-pins PSModule/Publish-PSModule to v2.2.4 to restore version calculation/stamping at publish time.
.github/dependabot.yml Adds an ignore rule to prevent Dependabot from proposing major bumps for PSModule/*-PSModule actions.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread .github/workflows/Publish-Module.yml

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

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

@MariusStorhaug Marius Storhaug (MariusStorhaug) marked this pull request as ready for review July 7, 2026 23:04
@MariusStorhaug Marius Storhaug (MariusStorhaug) merged commit 8b75537 into main Jul 7, 2026
70 checks passed
@MariusStorhaug Marius Storhaug (MariusStorhaug) deleted the fix/326-contain-publish-v3-regression branch July 7, 2026 23:26
Marius Storhaug (MariusStorhaug) added a commit that referenced this pull request Jul 8, 2026
- Resolve Get-Settings.yml modify/delete conflict (keep deletion; replaced by Plan.yml)
- Keep publish-only Publish-Module.yml (Publish-PSModule v3.0.0) over main's #363 revert
- Bump Resolve-PSModuleVersion pin v1.0.1 -> v1.1.0 (#348 always-emit fix)
- Align Plan.yml checkout to v7.0.0 (matches main)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants