build: ⬆️ update lock file #24
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: CI/CD | |
on: | |
push: | |
branches: | |
- main | |
release: | |
types: | |
- published | |
jobs: | |
build: | |
strategy: | |
matrix: | |
os: [macos-latest, ubuntu-latest, windows-latest] | |
runs-on: ${{ matrix.os }} | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v2 | |
- name: Install Node.js | |
uses: actions/setup-node@v1 | |
with: | |
node-version: 15.x | |
- name: Install Dependencies | |
run: yarn install --frozen-lockfile | |
- name: Test | |
run: yarn test | |
if: runner.os != 'Linux' | |
- name: Test with xvfb | |
run: xvfb-run -a yarn test | |
if: runner.os == 'Linux' | |
- name: Publish VSCode | |
if: success() && startsWith( github.ref, 'refs/tags/v') && matrix.os == 'ubuntu-latest' | |
run: yarn vscode:publish | |
env: | |
VSCE_PAT: ${{ secrets.VSCE_PAT }} | |
- name: Publish OVSX | |
if: success() && startsWith( github.ref, 'refs/tags/v') && matrix.os == 'ubuntu-latest' | |
run: yarn ovsx | |
env: | |
VSCE_PAT: ${{ secrets.OVSX_PAT }} |