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
18
18
$solutionRoot = (Get-SolutionPath )
19
19
20
20
$enginePath = Join-Path $solutionRoot " Engine"
21
+
21
22
# Check if the changelog has entry for $newVer
22
23
$moduleManifestPath = Join-Path $enginePath " PSScriptAnalyzer.psd1"
23
24
$changelogPath = Join-Path $solutionRoot ' CHANGELOG.MD'
@@ -57,15 +58,17 @@ Function New-Release
57
58
}
58
59
}
59
60
61
+ # update version
60
62
Update-Version $newVer $oldVer $solutionRoot
61
63
62
-
63
64
$changelogRegexPattern = " ##\s\[{0}\].*\n((?:.*\n)+)##\s\[{1}\].*" `
64
65
-f [regex ]::Escape($newVer ), [regex ]::Escape($oldVer )
65
66
$changelogRegex = [regex ]::new($changelogRegexPattern )
66
67
$matches = $changelogRegex.Match ((get-content $changelogPath - raw))
67
68
$changelog = $matches.Groups [1 ].Value.Trim()
68
- Write-Host $changelog
69
+
70
+ Write-Verbose ' CHANGELOG'
71
+ Write-Verbose $changelog
69
72
70
73
$releaseNotesPattern = `
71
74
" (?<releaseNotesBegin>ReleaseNotes\s*=\s*@')(?<releaseNotes>(?:.*\n)*)(?<releaseNotesEnd>'@)"
@@ -81,6 +84,7 @@ Function New-Release
81
84
# build the module
82
85
pushd $solutionRoot
83
86
remove-item out/ - recurse - force
87
+ dotnet restore
84
88
.\buildCoreClr.ps1 - Framework net451 - Configuration Release - Build
85
89
.\buildCoreClr.ps1 - Framework net451 - Configuration PSV3Release - Build
86
90
.\buildCoreClr.ps1 - Framework netstandard1.6 - Configuration Release - Build
You can’t perform that action at this time.
0 commit comments