Skip to content

style: style

style: style #7

Workflow file for this run

name: Build and Publish
on:
push:
branches:
- main
release:
types:
- created
jobs:
build:
strategy:
matrix:
os: [macos-latest, ubuntu-latest, windows-latest]
runs-on: ${{ matrix.os }}
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Install Node.js
uses: actions/setup-node@v4
with:
node-version: 22.x
- name: Install dependencies
run: yarn install
- name: Compile
run: yarn run compile
- name: Lint
run: yarn run lint
- name: Run tests (Linux)
if: runner.os == 'Linux'
run: xvfb-run -a yarn test
- name: Run tests (non-Linux)
if: runner.os != 'Linux'
run: yarn test
- name: Publish
if: success() && startsWith(github.ref, 'refs/tags/') && matrix.os == 'ubuntu-latest'
run: yarn run deploy
env:
VSCE_PAT: ${{ secrets.VSCE_PAT }}