Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -280,6 +280,8 @@ jobs:
}

# Ensure required modules are discoverable during Test-ModuleManifest/Publish-Module.
# Save original PSModulePath to restore before install/import verification.
$originalPSModulePath = $env:PSModulePath
$pathSeparator = [System.IO.Path]::PathSeparator
$modulePathEntries = $env:PSModulePath -split [regex]::Escape($pathSeparator)
if ($modulePathEntries -notcontains $modulesPath) {
Expand Down Expand Up @@ -309,6 +311,10 @@ jobs:
Write-Host " ✓ Published $moduleName"
}

# Restore original PSModulePath before install/import verification
# to ensure Import-Module resolves the installed package, not the staged build.
$env:PSModulePath = $originalPSModulePath

# Test that IdLE can be installed and imports correctly
Write-Host "`nInstalling IdLE from LocalRepo..."
Install-Module -Name 'IdLE' -Repository 'LocalRepo' -Scope CurrentUser -Force -AllowClobber -ErrorAction Stop
Expand Down
Loading