diff --git a/.github/workflows/build-test-publish.yml b/.github/workflows/build-test-publish.yml index 7b58323e..c8628dfa 100644 --- a/.github/workflows/build-test-publish.yml +++ b/.github/workflows/build-test-publish.yml @@ -18,6 +18,7 @@ jobs: shell: pwsh run: | $ErrorActionPreference = "Stop" + $env:PSModulePath = @($env:PSModulePath, ".\PwshSpectreConsole\") -join ";" $version = Get-Module PwshSpectreConsole -ListAvailable | Sort-Object -Property Version -Descending | Select-Object -First 1 -ExpandProperty Version if($null -eq $version) { throw "Failed to load version" } $newVersion = [version]::new($version.Major, $version.Minor, $version.Build + 1)