Skip to content

record handwritten events #9

record handwritten events

record handwritten events #9

Workflow file for this run

name: Run Unit Tests
on:
push:
branches: [ main ]
release:
types:
- created
pull_request:
branches: [ main ]
jobs:
test:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Install Node.js
uses: actions/setup-node@v4
with:
node-version: 20.x
- name: Install dependencies
run: npm install
- name: Run tests
run: xvfb-run -a npm test
publish:
runs-on: ubuntu-latest
needs: test
if: github.event_name == 'release' && github.event.action == 'created'
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Install Node.js
uses: actions/setup-node@v4
with:
node-version: 20.x
- name: Install dependencies
run: npm install
- name: Publish
run: npm run publish
env:
VSCE_PAT: ${{ secrets.VSCE_PAT }}