Skip to content

Node 22 support

Node 22 support #449

Workflow file for this run

name: Build & test
on:
push:
branches:
- master
pull_request:
jobs:
test:
name: Test
strategy:
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
node-version: [^18.12, ^20, ^22]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
cache: yarn
cache-dependency-path: yarn.lock
- name: Yarn install
run: yarn install --frozen-lockfile
- name: Transpile
run: yarn build
- name: Lint and run tests
run: yarn test
- name: Pack
run: npm pack