Skip to content

Deploy Extension

Deploy Extension #6

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
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v1
with:
node-version: 16
- run: npm ci
- 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