mirror of
https://github.com/bitbaum/limitkit.git
synced 2026-12-04 03:47:43 +01:00
Convert from npm to pnpm (fleet standard, STACK.md): - packageManager pin pnpm@11.25.0 (corepack SSOT) - pnpm-lock.yaml via `pnpm import` from package-lock.json (resolutions preserved), then package-lock.json deleted - CI + publish workflows: pnpm/action-setup@v6, cache: pnpm, `pnpm install --frozen-lockfile`, `pnpm run verify` - package.json scripts and contributor docs use pnpm; consumer install lines stay npm — consumers choose their own package manager - npm publish invocation unchanged (works from a pnpm-managed tree) Clean-room proven: rm -rf node_modules && pnpm install --frozen-lockfile && tests green. Claude-Session: https://claude.ai/code/session_01WqKqMnHQHSmkGFfc5t7Rxn Co-authored-by: Mao Nakamoto <41178744+maonakamoto@users.noreply.github.com> Co-authored-by: Claude Fable 5 <noreply@anthropic.com>
41 lines
1.0 KiB
YAML
41 lines
1.0 KiB
YAML
# GOLDEN CI FLOOR — pnpm. See bitbaum/fleet templates/ci/README.md.
|
|
name: CI
|
|
|
|
on:
|
|
push:
|
|
branches: [main]
|
|
pull_request:
|
|
branches: [main]
|
|
workflow_dispatch:
|
|
|
|
concurrency:
|
|
group: ci-${{ github.ref }}
|
|
cancel-in-progress: true
|
|
|
|
jobs:
|
|
verify:
|
|
runs-on: ubuntu-latest
|
|
timeout-minutes: 10
|
|
steps:
|
|
- uses: actions/checkout@v7
|
|
|
|
# pnpm version comes from "packageManager" in package.json (SSOT);
|
|
# pnpm/action-setup@v6 errors if both are specified.
|
|
- uses: pnpm/action-setup@v6
|
|
|
|
- uses: actions/setup-node@v7
|
|
with:
|
|
node-version: 24
|
|
cache: pnpm
|
|
|
|
- name: Install
|
|
run: pnpm install --frozen-lockfile
|
|
|
|
# SSOT: "verified" is defined ONCE, in package.json `verify`
|
|
# (= lint + typecheck + build + test), and run identically here and
|
|
# locally. The tests import the package BY NAME, so this also exercises
|
|
# the `exports` map — a broken one fails here, not at a consumer's
|
|
# install.
|
|
- name: Verify
|
|
run: pnpm run verify
|