Skip to content

Commit 555c459

Browse files
committed
Update release tools
We're replacing PowerShellForGitHub with the ADO GitHubRelease task, and the changelog generation with GitHub's automatic one. That means we can simplify a bunch of this.
1 parent d446f07 commit 555c459

7 files changed

+111
-613
lines changed

.github/release.yml

+16
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
changelog:
2+
exclude:
3+
labels:
4+
- Ignore
5+
authors:
6+
- dependabot
7+
categories:
8+
- title: Enhancements & Features ✨
9+
labels:
10+
- Issue-Enhancement
11+
- title: Squashed Bugs 🐛
12+
labels:
13+
- Issue-Bug
14+
- title: Other Changes 🙏
15+
labels:
16+
- "*"

docs/development.md

+19-19
Original file line numberDiff line numberDiff line change
@@ -50,29 +50,29 @@ For more information on contributing snippets please read our
5050
## Creating a Release
5151

5252
These are the current steps for creating a release for both the editor services
53-
and the extension. ADO access is restricted to Microsoft employees and is used
54-
to sign and validate the produced binaries before publishing on behalf of
55-
Microsoft. The comments are manual steps.
53+
and the extension. Azure DevOps access is restricted to Microsoft employees and
54+
is used to sign and validate the produced binaries before publishing on behalf
55+
of Microsoft.
5656

5757
```powershell
58-
Import-Module ./tools/ReleaseTools.psm1
59-
New-ReleaseBundle -PsesVersion <version> -VsceVersion <version>
60-
# Amend changelog as necessary
61-
# Push release branches to ADO
62-
# Download and test assets
63-
# Check telemetry for stability before releasing
64-
# Publish draft releases and merge (don't squash!) branches
65-
# Permit vscode-extension pipeline to publish to marketplace
66-
```
67-
68-
If rolling from pre-release to release, use:
58+
cd ./PowerShellEditorServices
59+
git checkout -B release
60+
./tools/updateVersion.ps1 -Version "4.0.0" -Changes "Major release!"
6961
70-
```powershell
71-
New-Release -RepositoryName vscode-powershell -Version <version>
62+
cd ../vscode-powershell
63+
git checkout -B release
64+
./tools/updateVersion.ps1 -Version "2024.4.0" -Changes "Major release!"
7265
```
7366

74-
This is because we do not change the version of PowerShell Editor Services between a
75-
pre-release and the subsequent release, so we only need to release the extension.
67+
1. Amend changelogs as necessary.
68+
2. Push release branches to ADO and GitHub.
69+
3. Download and test assets!
70+
4. Publish draft releases and merge (don't squash!) branches.
71+
5. Permit pipeline to publish to marketplace.
72+
73+
If rolling from pre-release to release, do not change the version of PowerShell
74+
Editor Services between a pre-release and the subsequent release! We only
75+
need to release the extension.
7676

7777
### Versioning
7878

@@ -118,7 +118,7 @@ pre-release tags in full) we can revisit this.
118118
Furthermore, for releases, the minor version must be _even_ (like 0, 2, etc.) and for
119119
pre-releases it must be _odd_ (like 1, 3, etc.), and an upcoming release's version must be
120120
`n-1` of the pre-release which previews it. That is, release `v2024.0.0` is previewed in
121-
the pre-release `v2024.1.0`. This scheme is designed such that the "newest" (by version)
121+
the pre-release `v2024.1.0-preview`. This scheme is designed such that the "newest" (by version)
122122
release is always a pre-release, so that the VS Code marketplace _always_ shows a
123123
pre-release option. When we previously did this the other way around (incrementing the
124124
release as `n+1` to the pre-release), every time we released, the pre-release option

0 commit comments

Comments
 (0)