From c0b9817ff52d44e126645e1d07d1148ee2864b34 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=89=8B=E7=93=9C=E4=B8=80=E5=8D=81=E9=9B=AA?= Date: Sat, 15 Nov 2025 14:01:11 +0800 Subject: [PATCH] Add type checking to build workflow Incorporates 'pnpm run typecheck' into the build steps for both frontend and shell jobs to ensure type safety during CI builds. --- .github/workflows/build.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index a0f48d27..7380d36e 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -21,6 +21,7 @@ jobs: run: | npm i -g pnpm pnpm i + pnpm run typecheck || exit 1 pnpm --filter napcat-webui-frontend run build || exit 1 pnpm run build:framework mv packages/napcat-framework/dist framework-dist @@ -46,6 +47,7 @@ jobs: npm i -g pnpm pnpm i pnpm --filter napcat-webui-frontend run build || exit 1 + pnpm run typecheck || exit 1 pnpm run build:shell mv packages/napcat-shell/dist shell-dist cd shell-dist