-
Install the VS Code Extension CLI:
npm install -g @vscode/vsce
-
Create a publisher on the VS Code Marketplace.
-
Create a Personal Access Token (PAT) in Azure DevOps with the Marketplace (Manage) scope.
npm version patch # or minor / majornpm run buildvsce packageThis creates vscode-maml-<version>.vsix. Inspect it to verify only the intended files are included:
vsce lsvsce publishOr publish a specific VSIX:
vsce publish --packagePath vscode-maml-<version>.vsixnpm install -g ovsx
ovsx publish vscode-maml-<version>.vsix -p <OVSX_TOKEN>code --install-extension vscode-maml-<version>.vsixTo publish a pre-release:
vsce publish --pre-release- Version bumped in
package.json -
CHANGELOG.mdupdated -
npm run buildsucceeds -
npm run lintpasses -
vsce lsoutput looks correct (no extra files) -
vsce packagecreates a valid VSIX - Tested in Extension Development Host (
F5) - Published to Marketplace
- Git tag created:
git tag v<version> && git push --tags