Skip to content

Deploy Extension

Deploy Extension #9

on:
workflow_dispatch:
inputs:
prerelease:
type: boolean
default: true
required: false
description: 'Submit as pre-release'
name: Deploy Extension
jobs:
deploy:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [20]
steps:
- uses: actions/checkout@v4
- name: Install pnpm
uses: pnpm/action-setup@v3
with:
version: 9
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
cache: 'pnpm'
- name: Install dependencies
run: pnpm install
- name: Publish to Open VSX Registry
continue-on-error: true
uses: HaaLeo/publish-vscode-extension@v1
with:
pat: ${{ secrets.OPEN_VSX_TOKEN }}
preRelease: ${{ env.prerelease }}
- name: Publish to Visual Studio Marketplace
uses: HaaLeo/publish-vscode-extension@v1
with:
pat: ${{ secrets.VS_MARKETPLACE_TOKEN }}
preRelease: ${{ env.prerelease }}
registryUrl: https://marketplace.visualstudio.com