Skip to content

Latest commit

 

History

History
28 lines (19 loc) · 2.52 KB

direct_publish_setup.md

File metadata and controls

28 lines (19 loc) · 2.52 KB

Publishing an extension to Open VSX on your own

We advise extension authors to publish their extensions to Open VSX as a part of their CI/CD process. See our reasoning why that is.

To make the Open VSX publishing process easier, we have provided a template of a GitHub Actions workflow.

The template performs the following:

  • Publishing to GitHub Releases, the Microsoft Marketplace and Open VSX
  • Uploading the .vsix package to GitHub Releases as assets
  • Manually triggers releases and publishing to Open VSX and/or Microsoft Marketplace.
  • Automatic triggers from new GitHub Releases

Setup VS Code extension publishing CI workflow

  1. First, follow the Publishing Extensions doc (only steps 1-4 are required) and take note of the access token that is returned, as you will require it in the next step.

  2. To run the GitHub Action above, you need to setup two repository secrets for the Action to use:

  3. In your extension repo, create a GitHub Action with the contents of this template. You can customize this however you like, for instance:

  4. Now you can test whether your config works by committing the Action file and running it from the Actions tab in your repo (select your workflow on the left and hit Run Workflow on the top right).

    • note this will not work if you have removed the workflow_dispatch trigger for the workflow. You will need to trigger the Action some other way (e.g. creating a blank GitHub Release)