Skip to content

.github/workflows/publish.yml #19

.github/workflows/publish.yml

.github/workflows/publish.yml #19

Workflow file for this run

on:
push:
branches:
- main
release:
types:
- created
jobs:
deployment:
environment: vscode_marketplace
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Install Node.js
uses: actions/setup-node@v3
with:
node-version: 16.x
- run: npm install
- run: xvfb-run -a npm test
if: runner.os == 'Linux'
- run: npm test
if: runner.os != 'Linux'
- name: Publish
if: success() && startsWith(github.ref, 'refs/tags/')
run: npm run deploy
env:
VSCE_PAT: ${{ secrets.VSCE_PAT }}