|
12 | 12 | * Accumulation of many changes, none of which are individually big enough to warrant a minor bump, but which together are. This does not include changes which are purely internal to the extension, such as refactoring, or which are only available behind a feature flag. |
13 | 13 | 1. Double-check that the node version we're using matches the one used for VS Code. If it doesn't, you will then need to update the node version in the following files: |
14 | 14 | * `.nvmrc` - this will enable `nvm` to automatically switch to the correct node version when you're in the project folder |
15 | | - * `.github/workflows/main.yml` - all the "node-version: <version>" settings |
16 | | - * `.github/workflows/release.yml` - the "node-version: <version>" setting |
| 15 | + * `.github/workflows/main.yml` - all the "node-version: '[VERSION]'" settings |
| 16 | + * `.github/workflows/release.yml` - the "node-version: '[VERSION]'" setting |
17 | 17 | 1. Double-check that the extension `package.json` and `package-lock.json` have the version you intend to release. If you are doing a patch release (as opposed to minor or major version) this should already be correct. |
18 | 18 | 1. Create a PR for this release: |
19 | 19 | * This PR will contain any missing bits from steps 1, 2 and 3. Most of the time, this will just be updating `CHANGELOG.md` with today's date. |
|
22 | 22 | * Create a PR for this branch. |
23 | 23 | * Wait for the PR to be merged into `main` |
24 | 24 | 1. Switch to `main` branch and pull latest changes |
25 | | -1. Lock the `main` branch. |
| 25 | +1. Lock the `main` branch. |
26 | 26 | * Go to the [branch protection rules for the `main` branch](https://github.com/github/vscode-codeql/settings/branch_protection_rules/16447115) |
27 | 27 | * Select "Lock branch" |
28 | 28 | * Click "Save changes" |
29 | 29 | 1. Ensure that no PRs have been merged since the release PR that you merged. If there were, you might need to unlock `main` temporarily and update the CHANGELOG again. |
30 | 30 | 1. Build the extension `npm run build` and install it on your VS Code using "Install from VSIX". |
31 | 31 | 1. Go through [our test plan](./test-plan.md) to ensure that the extension is working as expected. |
32 | 32 | 1. Switch to `main` and add a new tag on the `main` branch with your new version (named after the release), e.g. |
| 33 | + |
33 | 34 | ```bash |
34 | 35 | git checkout main |
35 | 36 | git tag v1.3.6 |
36 | 37 | ``` |
37 | 38 |
|
38 | 39 | If you've accidentally created a badly named tag, you can delete it via |
39 | | - ```bash |
40 | | - git tag -d badly-named-tag |
41 | | - ``` |
| 40 | +
|
| 41 | + ```bash |
| 42 | + git tag -d badly-named-tag |
| 43 | + ``` |
| 44 | +
|
42 | 45 | 1. Unlock the main branch |
43 | 46 | * Go to the [branch protection rules for the `main` branch](https://github.com/github/vscode-codeql/settings/branch_protection_rules/16447115) |
44 | 47 | * Deselect "Lock branch" |
|
68 | 71 | or look at the source if there's any doubt the right code is being shipped. |
69 | 72 | 1. Install the `.vsix` file into your vscode IDE and ensure the extension can load properly. Run a single command (like run query, or add database). |
70 | 73 | 1. Go to the actions tab of the vscode-codeql repository and select the [Release workflow](https://github.com/github/vscode-codeql/actions?query=workflow%3ARelease). |
71 | | - - If there is an authentication failure when publishing, be sure to check that the authentication keys haven't expired. See below. |
| 74 | + * If there is an authentication failure when publishing, be sure to check that the authentication keys haven't expired. See below. |
72 | 75 | 1. Approve the deployments of the correct Release workflow. This will automatically publish to Open VSX and VS Code Marketplace. |
73 | 76 | 1. Go to the draft GitHub release in [the releases tab of the repository](https://github.com/github/vscode-codeql/releases), click 'Edit', add some summary description, and publish it. |
74 | 77 | 1. Confirm the new release is marked as the latest release at <https://github.com/github/vscode-codeql/releases>. |
|
0 commit comments