Skip to content

Commit b00841f

Browse files
committed
fix(#168): update release workflow to use freshly built module
- Import built module in CI before invoking release and publish steps to prevent missing private helper failures.
1 parent cfceafc commit b00841f

2 files changed

Lines changed: 7 additions & 0 deletions

File tree

.github/workflows/Publish.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,7 @@ jobs:
6464
id: semantic_release
6565
if: github.ref_name == 'main'
6666
run: |
67+
& ./scripts/build/ci/Import-BuiltCiModule.ps1 | Out-Null
6768
Invoke-NovaRelease -Repository PSGallery -ApiKey $env:PSGALLERY_API -SkipTests -ContinuousIntegration
6869
$version = Get-NovaProjectInfo -Version
6970
$result = Move-UnreleasedChangelog -Version $version
@@ -142,6 +143,7 @@ jobs:
142143
- name: Publish develop prerelease to PSGallery
143144
if: github.ref_name == 'develop'
144145
run: |
146+
& ./scripts/build/ci/Import-BuiltCiModule.ps1 | Out-Null
145147
Publish-NovaModule -Repository PSGallery -ApiKey $env:PSGALLERY_API -SkipTests -ContinuousIntegration
146148
env:
147149
PSGALLERY_API: ${{ secrets.PSGALLERY_API }}

CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,11 @@ Keep stable `Update-NovaModuleVersion` / `% nova bump` releases on the SemVer ma
4040

4141
### Fixed
4242

43+
- Fix the release workflow so repository publish steps run against the freshly built `dist/` module in each CI
44+
PowerShell process.
45+
- `Publish.yml` now imports the built module before `Invoke-NovaRelease` and `Publish-NovaModule`, which avoids
46+
missing private helper failures when the runner also has an older installed `NovaModuleTools` version available
47+
for autoload.
4348
- Fix the command-line test workflow wording in `docs/core-workflows.html` so the CLI preview flag is shown as
4449
`--what-if`.
4550
- The GitHub Pages guide now keeps the PowerShell `-WhatIf` wording only in the PowerShell view and shows

0 commit comments

Comments
 (0)