* chore: migrate to pnpm v11, switch to nano-staged, add skills-npm - Bump packageManager to pnpm@11.1.3; rename onlyBuiltDependencies to allowBuilds - Replace lint-staged with nano-staged - Add skills-npm via prepare chain - Set core.hooksPath to .githooks so simple-git-hooks works in worktrees * ci: bump pnpm/action-setup to v6 for pnpm 11 global bin PATH fix v4 leaves the v11 isolated global bin dir ($PNPM_HOME/bin) out of PATH, breaking `pnpm i -g @antfu/ni`. v6 ships pnpm 11 support and the PATH fix.
54 lines
1004 B
YAML
54 lines
1004 B
YAML
name: CI
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- main
|
|
|
|
pull_request:
|
|
branches:
|
|
- main
|
|
|
|
jobs:
|
|
lint:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
- uses: pnpm/action-setup@v6
|
|
with:
|
|
run_install: false
|
|
- uses: actions/setup-node@v4
|
|
with:
|
|
node-version: lts/*
|
|
cache: pnpm
|
|
|
|
- run: pnpm i -g @antfu/ni
|
|
- run: nci
|
|
- run: nr lint
|
|
- run: nr typecheck
|
|
|
|
test:
|
|
runs-on: ${{ matrix.os }}
|
|
|
|
strategy:
|
|
matrix:
|
|
node: [lts/*]
|
|
os: [ubuntu-latest, windows-latest, macos-latest]
|
|
fail-fast: false
|
|
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
- uses: pnpm/action-setup@v6
|
|
with:
|
|
run_install: false
|
|
- name: Set node ${{ matrix.node }}
|
|
uses: actions/setup-node@v4
|
|
with:
|
|
node-version: ${{ matrix.node }}
|
|
cache: pnpm
|
|
|
|
- run: pnpm i -g @antfu/ni
|
|
- run: nci
|
|
- run: nr build
|
|
- run: nr test
|