Publish VS Code Extension #2
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Publish VS Code Extension | |
| on: | |
| release: | |
| types: [published] | |
| jobs: | |
| publish: | |
| runs-on: ubuntu-latest | |
| defaults: | |
| run: | |
| working-directory: vscode-extension | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Set up Node.js | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: '20' | |
| - name: Install dependencies | |
| run: npm install | |
| - name: Install vsce | |
| run: npm install -g @vscode/vsce | |
| # vscode:prepublish runs `tsc` automatically before packaging | |
| - name: Package extension | |
| run: vsce package --out agent-trace.vsix | |
| - name: Upload VSIX artifact | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: agent-trace-vsix | |
| path: vscode-extension/agent-trace.vsix | |
| - name: Publish to VS Code Marketplace | |
| run: vsce publish --packagePath agent-trace.vsix --pat ${{ secrets.VSCE_PAT }} |