How to version and publish a vscode extension? #1297
-
Hi team, I am building a vscode extension and wanna to leverage changesets to manage changelog and version for it. I didn't find any guide relates to publish package to vscode registry instead of npm. I already learned this tool can work with npm well e.g. checking remote latest version from npm before publishing. But I am not sure will these features work with vscode registry as well. Any guidelines? Thanks! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
The key is to tag the extension before publishing: https://github.com/mdx-js/mdx-analyzer/blob/3069af7ade2feea2a65ad9ddcf241ceec55ec314/scripts/tag-extension.mjs Then you can do this before calling And you need to wire it up with |
Beta Was this translation helpful? Give feedback.
The key is to tag the extension before publishing: https://github.com/mdx-js/mdx-analyzer/blob/3069af7ade2feea2a65ad9ddcf241ceec55ec314/scripts/tag-extension.mjs
Then you can do this before calling
changeset publish
:https://github.com/mdx-js/mdx-analyzer/blob/3069af7ade2feea2a65ad9ddcf241ceec55ec314/release.sh#L6-L7
And you need to wire it up with
changesets/action
:https://github.com/mdx-js/mdx-analyzer/blob/3069af7ade2feea2a65ad9ddcf241ceec55ec314/.github/workflows/version.yml#L23-L24