File tree Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -18,6 +18,7 @@ Function New-Release
1818 $solutionRoot = (Get-SolutionPath )
1919
2020 $enginePath = Join-Path $solutionRoot " Engine"
21+
2122 # Check if the changelog has entry for $newVer
2223 $moduleManifestPath = Join-Path $enginePath " PSScriptAnalyzer.psd1"
2324 $changelogPath = Join-Path $solutionRoot ' CHANGELOG.MD'
@@ -57,15 +58,17 @@ Function New-Release
5758 }
5859 }
5960
61+ # update version
6062 Update-Version $newVer $oldVer $solutionRoot
6163
62-
6364 $changelogRegexPattern = " ##\s\[{0}\].*\n((?:.*\n)+)##\s\[{1}\].*" `
6465 -f [regex ]::Escape($newVer ), [regex ]::Escape($oldVer )
6566 $changelogRegex = [regex ]::new($changelogRegexPattern )
6667 $matches = $changelogRegex.Match ((get-content $changelogPath - raw))
6768 $changelog = $matches.Groups [1 ].Value.Trim()
68- Write-Host $changelog
69+
70+ Write-Verbose ' CHANGELOG'
71+ Write-Verbose $changelog
6972
7073 $releaseNotesPattern = `
7174 " (?<releaseNotesBegin>ReleaseNotes\s*=\s*@')(?<releaseNotes>(?:.*\n)*)(?<releaseNotesEnd>'@)"
@@ -81,6 +84,7 @@ Function New-Release
8184 # build the module
8285 pushd $solutionRoot
8386 remove-item out/ - recurse - force
87+ dotnet restore
8488 .\buildCoreClr.ps1 - Framework net451 - Configuration Release - Build
8589 .\buildCoreClr.ps1 - Framework net451 - Configuration PSV3Release - Build
8690 .\buildCoreClr.ps1 - Framework netstandard1.6 - Configuration Release - Build
You can’t perform that action at this time.
0 commit comments