Publish to Marketplaces #12
Workflow file for this run
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 Marketplaces | |
on: | |
release: | |
types: [created] | |
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 }} | |
openvsix: | |
name: OpenVSIX 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 Ovsx | |
run: npm i -g ovsx | |
- name: Publish to OpenVSIX Marketplace | |
if: github.event_name != 'workflow_dispatch' | |
run: ovsx publish -p ${{ secrets.OPENVSX_TOKEN }} |