Publish to VSCode Marketplace (Manual) #1
This file contains 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
# 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 }} |