Overview
Set up GitHub Actions for continuous integration and automated publishing to the VS Code Marketplace.
Workflows needed
1. CI — on every push and PR
Trigger: push to main, all pull_request
2. Publish — on tagged releases
Trigger: push tags matching v*
Secrets required
| Secret |
Source |
Purpose |
VSCE_PAT |
Azure DevOps PAT (Marketplace > Manage scope) |
Authenticate vsce publish |
Release process
- Bump version:
npm version patch (or minor/major)
- Push with tag:
git push && git push --tags
- Actions publishes automatically
Notes
- Node version should match what's in
.trunk/trunk.yaml (node@22.16.0)
- Tests don't require the VS Code runtime (mocha + ts-node, no
@vscode/test-electron)
- Trunk CLI can be installed via
curl https://get.trunk.io -fsSL | bash or the trunk-io/trunk-action GitHub Action
- Consider adding a manual workflow dispatch for publishing hotfixes without a tag
Depends on
Overview
Set up GitHub Actions for continuous integration and automated publishing to the VS Code Marketplace.
Workflows needed
1. CI — on every push and PR
Trigger:
pushtomain, allpull_requestnpm ci)npm run build)npm run test)tsc --project tsconfig.test.json --noEmit)trunk check --no-fix)npx @vscode/vsce package --allow-missing-repository) — verify it produces a valid artifact2. Publish — on tagged releases
Trigger:
pushtags matchingv*npx @vscode/vsce publish)Secrets required
VSCE_PATvsce publishRelease process
npm version patch(orminor/major)git push && git push --tagsNotes
.trunk/trunk.yaml(node@22.16.0)@vscode/test-electron)curl https://get.trunk.io -fsSL | bashor thetrunk-io/trunk-actionGitHub ActionDepends on