Skip to content

chore(main): release 0.12.0 #217

chore(main): release 0.12.0

chore(main): release 0.12.0 #217

Workflow file for this run

name: CI
on:
merge_group:
pull_request:
push:
branches: [main]
concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
cancel-in-progress: true
permissions:
contents: read # for checkout
jobs:
build:
permissions:
# Required to checkout the code
contents: read
# Required to put a comment into the pull-request
pull-requests: write
name: Build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
cache: npm
node-version: lts/*
- run: npm ci
- run: npm run build
- uses: actions/upload-artifact@v4
name: Cache build output
with:
retention-days: 1
name: build-output-${{ github.run_id }}
path: |
dist/
coverage:
permissions:
# Required to checkout the code
contents: read
# Required to put a comment into the pull-request
pull-requests: write
name: Test and report coverage
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
cache: npm
node-version: lts/*
- run: npm ci
- run: npm run coverage
- uses: davelosert/vitest-coverage-report-action@7bf7d3c1b17a0e27c7e0d14190fb39168584bed2 # v2
if: always()
test:
needs: [build, coverage]
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
# Run the testing suite on each major OS with the latest LTS release of Node.js
os: [macos-latest, ubuntu-latest, windows-latest]
node-version: ["20.x", "22.x", "24.x"]
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
cache: npm
node-version: ${{ matrix.node-version }}
- run: npm install
- run: npm test