We need to set up an automated process to package our VSCode extension and prepare it for publishing to both the VSCode Marketplace and the Open VSX Registry. This will ensure that every push to main and every new release results in a packaged extension, ready for installation and distribution.
Tasks:
Automated Packaging:
Use GitHub Actions to automate packaging the extension on every push to the main branch and on every release.
We can leverage the vsce tool to handle the packaging of the extension.
We need to set up an automated process to package our VSCode extension and prepare it for publishing to both the VSCode Marketplace and the Open VSX Registry. This will ensure that every push to
main
and every new release results in a packaged extension, ready for installation and distribution.Tasks:
Automated Packaging:
main
branch and on every release.vsce
tool to handle the packaging of the extension.Steps to automate packaging:
main
and release events.npm install
).vsce package
to bundle the extension..vsix
file.Example GitHub Actions workflow:
Publishing to the VSCode Marketplace:
vsce publish
command in the GitHub Actions workflow to automatically publish the extension.Example workflow snippet for publishing:
Publishing to the Open VSX Registry:
ovsx
command in the GitHub Actions workflow to publish the extension.Example workflow snippet for publishing:
Definition of Done:
main
and on every release tag.