Skip to content

Merge pull request #6 from tencentcloudstack/feat/enable-actions #1

Merge pull request #6 from tencentcloudstack/feat/enable-actions

Merge pull request #6 from tencentcloudstack/feat/enable-actions #1

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
- run: xvfb-run -a npm test
if: runner.os == 'Linux'
- 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 }}