diff --git a/CHANGELOG.md b/CHANGELOG.md index 3727714b0c..40ef53dcd2 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,16 @@ # PowerShell Extension Release History +## v2022.7.2-preview +### Tuesday, July 26, 2022 + +#### [vscode-powershell](https://github.com/PowerShell/vscode-powershell) + +- ✨ 💭 [vscode-powershell #4093](https://github.com/PowerShell/vscode-powershell/pull/4093) - Change `storageUri` to `globalStorageUri` for log and session files. + +#### [PowerShellEditorServices](https://github.com/PowerShell/PowerShellEditorServices) v3.4.7 + +No changes. + ## v2022.7.1-preview ### Monday, July 25, 2022 diff --git a/package.json b/package.json index 061a1f030b..ad74752d3f 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "powershell-preview", "displayName": "PowerShell Preview", - "version": "2022.7.1", + "version": "2022.7.2", "preview": true, "publisher": "ms-vscode", "description": "(Preview) Develop PowerShell modules, commands and scripts in Visual Studio Code!", diff --git a/tools/ReleaseTools.psm1 b/tools/ReleaseTools.psm1 index b378056b56..29f62e835f 100644 --- a/tools/ReleaseTools.psm1 +++ b/tools/ReleaseTools.psm1 @@ -252,7 +252,7 @@ function Update-Changelog { "" $Bullets "" - "#### [PowerShellEditorServices](https://github.com/PowerShell/PowerShellEditorServices)" + "#### [PowerShellEditorServices](https://github.com/PowerShell/PowerShellEditorServices) v$(Get-Version -RepositoryName PowerShellEditorServices)" "" (Get-FirstChangelog -RepositoryName "PowerShellEditorServices").Where({ $_.StartsWith("- ") }, "SkipUntil") ) @@ -416,7 +416,7 @@ function New-ReleasePR { <# .SYNOPSIS - Kicks off the whole release process. + Kicks off the whole release process for one of the repositories. .DESCRIPTION This first updates the changelog (which creates and checks out the `release` branch), commits the changes, updates the version (and commits), pushes the @@ -432,6 +432,28 @@ function New-ReleasePR { assets to the marketplace and gallery. #> function New-Release { + [CmdletBinding(SupportsShouldProcess)] + param( + [Parameter(Mandatory)] + [ValidateSet([RepoNames])] + [string]$RepositoryName, + + [Parameter(Mandatory)] + [ValidateScript({ $_.StartsWith("v") })] + [string]$Version + ) + Update-Changelog -RepositoryName $RepositoryName -Version $Version + Update-Version -RepositoryName $RepositoryName + New-ReleasePR -RepositoryName $RepositoryName +} + +<# +.SYNOPSIS + Kicks off the whole release process for both repositories. +.DESCRIPTION + This just simplifies the calling of `New-Release` for both repositories. +#> +function New-ReleaseBundle { [CmdletBinding(SupportsShouldProcess)] param( [Parameter(Mandatory)] @@ -447,9 +469,7 @@ function New-Release { "PowerShellEditorServices" { $PsesVersion } "vscode-powershell" { $VsceVersion } } - Update-Changelog -RepositoryName $_ -Version $Version - Update-Version -RepositoryName $_ - New-ReleasePR -RepositoryName $_ + New-Release -RepositoryName $_ -Version $Version } }