How to Release
To make a new release and publish it to the marketplace you have to follow the following steps.
- Create a branch
publish-x.y.z
- Update
package.json
with the new version - Add a section to
CHANGELOG.md
with the header## [x.y.z]
(N.B: make sure to write the new version in square brackets as thechangelog-reader
action only works if theCHANGELOG.md
file follows the Keep a Changelog standard) - Create a new PR, get approval and merge
- Run the
Build & Publish
workflow manually from the GH Actions tab
Build & Publish
The Build & Publish
workflow allows to create a new release, package it in a VSIX file and publish to the VSCode marketplace with a single click.
The only requirement needed to run the workflow is to have a secret named VS_MARKETPLACE_TOKEN
containing the Personal Access Token of the publisher. You can find more infos about how to create a publisher/token in the official documentation
Once everything is set up and you followed all first 4 steps in the previous section, you are ready to trigger the Build & Publish
workflow.
This is what it actually does:
- Install all dependencies and build the project
- Check if the
CHANGELOG.md
contains a section related to the new version - Create a new release
- Create the VSIX file and publish it to the marketplace
- Attach the VSIX file to the new release