Skip to content

ci: 用 GitHub Actions 构建并 stage 发布到 npm #1

ci: 用 GitHub Actions 构建并 stage 发布到 npm

ci: 用 GitHub Actions 构建并 stage 发布到 npm #1

Workflow file for this run

name: CI
on:
push:
branches: [main]
pull_request:
permissions:
contents: read
jobs:
test:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
node-version: ['20.12', '22.x', '24.x']
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
cache: npm
- run: npm ci
# typecheck resolves `qca` through package exports, so dist must exist first.
- run: npm run build
- run: npm run typecheck
- run: npm test
- run: npm pack --dry-run