preprelease.ps1
#run this before committing to git and pushing a new release $module = Split-Path -Path $PSScriptRoot -Leaf $version = (Test-ModuleManifest $PSScriptRoot\PSQuizMaster.psd1).version.ToString() Write-Host "Updating change log for $module with release $version" -ForegroundColor Yellow Update-Changelog -ReleaseVersion $Version -LinkMode Automatic -LinkPattern @{NormalRelease="https://github.com/jdhitsolutions/$module/compare/v{PREV}..v{CUR}"; Unreleased="https://github.com/jdhitsolutions/$module/compare/v{CUR}..HEAD"} $data = Get-ChangelogData $scratch = @" # $Module ## $($data.LastVersion) $($data.ReleaseNotes) "@ $scratch | Out-File $PSScriptRoot\scratch-change.md Write-Host "Modify changelog and scratch-changelog as needed." -ForegroundColor Yellow #git commit changes and publish release |