Skip to content

Convert to ESM

Convert to ESM #59

Workflow file for this run

name: Node.js CI
on:
pull_request:
push:
branches: [main]
jobs:
pre-commit:
env:
# Disabled because: [error] Cannot find package 'prettier-plugin-jsdoc' imported from /app/noop.js
SKIP: prettier
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: '3.12'
cache: 'pip'
- uses: pre-commit/[email protected]
build:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [20.x, 22.x]
steps:
- uses: actions/checkout@v4
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
cache: 'npm'
- run: npm ci
- run: npm test
- run: npm run lint
- run: npm run format
- run: npm run build:debug
- run: npm run build:prod