Commit 8b75537
authored
🪲 [Fix]: Restore correct release versioning in the publish pipeline (#363)
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.
- Relates to #326 (move version calculation ahead of the build step)
- Contains the regression introduced by #358
## 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/workflows/Publish-Module.yml`: `PSModule/Publish-PSModule`
pin reverted `03c0f8b… # v3.0.0` → `8917aed… # v2.2.4`. This is the
exact pin #358 replaced; no `with:` inputs changed — v2.2.4 consumes the
version-calculation inputs the workflow already passes, whereas v3.0.0
silently ignored them.
- `.github/workflows/Publish-Module.yml`: normalized the `APIKey` action
input from `secrets.APIKEY` to `secrets.APIKey` to match the `APIKey`
secret declaration and the other workflows (`workflow.yml`,
`Workflow-Test-*.yml`). GitHub Actions secret names are
case-insensitive, so this is a consistency-only change with no
behavioral effect (flagged during Copilot review).
- This is step 1 (containment) of #326. Follow-ups: release
`Resolve-PSModuleVersion` with the #348 fix, then rebase and land PR
#342 (Plan job + Build v5 + publish-only Publish) and re-pin the
first-party actions together.1 parent 6aa7664 commit 8b75537
1 file changed
Lines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
30 | 30 | | |
31 | 31 | | |
32 | 32 | | |
33 | | - | |
| 33 | + | |
34 | 34 | | |
35 | 35 | | |
36 | 36 | | |
37 | 37 | | |
38 | 38 | | |
39 | | - | |
| 39 | + | |
40 | 40 | | |
41 | 41 | | |
42 | 42 | | |
| |||
0 commit comments