Skip to content

fix: cjs declaration #569

fix: cjs declaration

fix: cjs declaration #569

Workflow file for this run

name: CI
on: [pull_request]
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
node: [24.x, 22.x, 20.x, 18.x]
env:
CI: true
YARN_IGNORE_ENGINES: true
steps:
- name: Begin CI...
uses: actions/checkout@v2
- name: Use Node
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node }}
- name: Install dependencies
run: yarn install --frozen-lockfile
- name: Lint
run: yarn lint
- name: Test
run: yarn test
- name: Build
run: yarn build
- name: Run benchmark
run: node benchmark.js | tee output.txt
env:
NODE_ENV: production
- name: Store benchmark result
uses: rhysd/github-action-benchmark@v1
with:
tool: 'benchmarkjs'
output-file-path: output.txt
comment-on-alert: true
save-data-file: ${{ github.ref == 'refs/heads/main' }}
github-token: ${{ secrets.GITHUB_TOKEN }}