Skip to content

Fix VSCE token

Fix VSCE token #29

name: Build and Publish to VS Code Marketplace
on:
release:
types: [released]
pull_request:
branches: [master]
paths:
- ".github/workflows/publish-vscode.yml"
- "client/vscode/**"
jobs:
publish-vscode:
name: Publish release to VS Code Marketplace
runs-on: ubuntu-latest
environment:
name: vscode
defaults:
run:
working-directory: client/vscode
steps:
- uses: actions/checkout@v4
- name: Set up Node.js
uses: actions/setup-node@v4
- name: Build
run: npm ci
- name: Publish
if: github.event_name == 'release'
run: npm version ${{ github.ref_name }} &&
npm run vsce publish -- -p ${{ secrets.VSCE_TOKEN }}