Skip to content

Update pre-release.yml #2

Update pre-release.yml

Update pre-release.yml #2

Workflow file for this run

name: pre-release
on:
push:
branches:
- master
tags:
- v*
- v*.*.*
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: 16.x
- run: npm install
- name: Run headless test
uses: coactions/setup-xvfb@v1
if: runner.os == 'Linux'
with:
run: xvfb-run -a npm test
- run: npm test
if: runner.os != 'Linux'
- name: Pre release
if: success() && startsWith(github.ref, 'refs/tags/')
run: vsce package --no-yarn
env:
VSCE_PAT: ${{ secrets.VS_MARKETPLACE_TOKEN }}