Publish VSCode Extension #3
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 VSCode Extension | |
on: | |
push: | |
tags: | |
- 'v*' # Trigger only on version tags like v1.2.3 | |
jobs: | |
publish: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repo | |
uses: actions/checkout@v4 | |
- name: Set up Node.js | |
uses: actions/setup-node@v4 | |
with: | |
node-version: 18 | |
- name: Install dependencies | |
run: npm ci | |
- name: Install vsce | |
run: npm install -g @vscode/vsce | |
- name: Publish to Marketplace | |
run: vsce publish --pat "$VSCE_TOKEN" | |
env: | |
VSCE_TOKEN: ${{ secrets.VSCE_TOKEN }} | |