publish.ps1
. .\helpers $Key=Get-Password -Name "Powershell Gallery OptWin" -Field "credential" $OldVersion= Import-PowerShellDataFile -Path .\OptWin.psd1 | Select-Object -ExpandProperty ModuleVersion $NewVersion= Step-Version -Version $OldVersion -By Patch Test-ModuleManifest -Path .\OptWin.psd1 Update-ModuleManifest -Path .\OptWin.psd1 -ModuleVersion $NewVersion Write-Information "Version $OldVersion -> $NewVersion" Write-Information "Let's publish!!" Publish-Module -Path . -NuGetApiKey $Key -Repository PSGallery Remove-Variable "Key" Install-Module -Name OptWin -Force Import-Module OptWin Optimize-Windows -Preset Harmless |