TestPublish.ps1
try { publish-module -NuGetApiKey oy2fcfaybyksirg6f7wa7n6aksm76yrebl26vkaajwv66a -ErrorAction Stop } catch [InvalidOperationException] { if ($psItem.message -match '') } |
try { publish-module -NuGetApiKey oy2fcfaybyksirg6f7wa7n6aksm76yrebl26vkaajwv66a -ErrorAction Stop } catch [InvalidOperationException] { if ($psItem.message -match '') } |