vsce: improve release flow
There are no commits yet
Push commits to the source branch or add previously merged commits to review them.
Created by: abeatrix
Close https://github.com/sourcegraph/sourcegraph/issues/34940
Currently, if we want to make a release for the VS Code extension, we will create a commit in a certain format and push it to the release branch, where the CI will then read the commit, update the version number and the changelog, and then make the release. However, the changes made to the package.json and the changelog are not included in the build and not committed to both the main and release branches, and required us to update the changes manually which is not optimal for an auto-release process.
Run the yarn release:major
or yarn release:minor
or yarn release:patch
or yarn release:pre
command locally. These commands will:
It will no longer read the commit message as at that point we are certain the version number and changelog are taken care of. It will automatically publish the newest version to the marketplace with the correct package name.
For devs to run locally before a release:
yarn release:major
yarn release:minor
yarn release:patch
yarn release:pre
For CI to run to publish the extension:
yarn publish
Tested manually for the commands
Push commits to the source branch or add previously merged commits to review them.