Skip to content

Workflow file for this run

name: Publish package to VSCode Marketplace
on:
release:
types: [published]
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: '20'
- run: npm install
- run: npm install -g vsce
- name: Build package
run: npx vsce package
- name: Upload vsix to release
uses: AButler/upload-release-assets@v3.0
with:
files: '*.vsix'
repo-token: ${{ secrets.GITHUB_TOKEN }}
- uses: lannonbr/vsce-action@master
if: github.event.release.prerelease == false
with:
args: "publish -p $VSCE_TOKEN"
env:
VSCE_TOKEN: ${{ secrets.VSCE_TOKEN }}