Skip to content

Publish to VSCode Marketplace (Manual) #1

Publish to VSCode Marketplace (Manual)

Publish to VSCode Marketplace (Manual) #1

# Publish this VSCode Extension to the VSCode Marketplace and OpenVSIX Marketplace
name: Publish to VSCode Marketplace (Manual)
on:
workflow_dispatch:
jobs:
vscemp:
name: VScode Marketplace
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Node
uses: actions/setup-node@v4
with:
node-version: '${{ vars.NODE_VERSION }}'
registry-url: 'https://registry.npmjs.org'
- name: Install Dependencies
run: yarn
- name: Install Vsce
run: npm i -g vsce
- name: Publish to VScode Marketplace
if: github.event_name != 'workflow_dispatch'
run: vsce publish -p ${{ secrets.VSCE_TOKEN_OLD }}