Skip to content

v0.2.8

v0.2.8 #10

Workflow file for this run

name: Visual Studio store upload
on:
release:
types: [published]
workflow_dispatch:
inputs:
publish_vsx:
description: 'Upload to the main store'
required: true
default: false
publish_open_vsx:
description: 'Upload to the open vsx store'
required: true
default: false
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Install Node.js
uses: actions/setup-node@v3
with:
node-version: 18.x
- run: npm install -g vsce
- run: npm install
- run: npm run build
- run: vsce package
- name: Publish
if: success() && (startsWith(github.ref, 'refs/tags/') || ${{ github.event.inputs.publish_vsx }})
run: npm run deploy
env:
VSCE_PAT: ${{ secrets.VSCE_PAT }}
- name: Publish to Open VSX Registry
if: success() && (startsWith(github.ref, 'refs/tags/') || ${{ github.event.inputs.publish_open_vsx }})
uses: HaaLeo/publish-vscode-extension@v1
with:
pat: ${{ secrets.OPEN_VSX_TOKEN }}