Skip to content

Add npm publish workflow #196

Add npm publish workflow

Add npm publish workflow #196

Workflow file for this run

name: Build
on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
build:
runs-on: ubuntu-latest
timeout-minutes: 10
strategy:
matrix:
os: [ubuntu-latest, windows-latest, macos-latest]
node: [16, 18, 20]
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node }}
cache: 'npm'
cache-dependency-path: ./package-lock.json
- name: Install dependencies
run: npm ci
- name: Test ESLint
run: npm run test:eslint
- name: Test Typescript
run: npm run test:types
- name: Test Markdown
run: npm run test:markdown
- name: Test Jest
run: npm run test:unit
- name: Build
run: |
npm run build
npm run build:example