fix(ci): pr-check lint 步骤语法错误导致必挂
All checks were successful
Push Check / check (push) Successful in 2m15s

pnpm 的 --if-present 只对 run 子命令有效,pnpm lint --if-present 把 lint
当外部命令执行报 ERR_PNPM_RECURSIVE_EXEC_FIRST_FAIL(本地已复现)。
项目无 lint script,删除该步骤;补 pnpm test 对齐基线档定义
(push CI = typecheck + vitest),tsc --noEmit 改用 typecheck script。
This commit is contained in:
lanrtop 2026-07-04 07:58:16 +09:00
parent 1aa26966f4
commit a1a4748c58

View File

@ -1,4 +1,4 @@
# 前端类型检查(每次 push master 触发) # 前端类型检查 + 单元测试(每次 push master 触发)
name: Push Check name: Push Check
on: on:
@ -22,5 +22,5 @@ jobs:
cache: 'pnpm' cache: 'pnpm'
- run: pnpm install --frozen-lockfile - run: pnpm install --frozen-lockfile
- run: pnpm tsc --noEmit - run: pnpm typecheck
- run: pnpm lint --if-present - run: pnpm test