From e4de59746083da8b78c99af64499b5346930ce47 Mon Sep 17 00:00:00 2001 From: snomiao Date: Tue, 14 Oct 2025 05:10:45 +0000 Subject: [PATCH] chore(deploy-gh-pages): fix indentation for env variable in GitHub Actions workflow chore(knip.config.ts): add public directory and vite.config.ts to Knip config for better type management feat(package.json): add build:pages script to automate page building process --- .github/workflows/deploy-gh-pages.yml | 4 ++-- knip.config.ts | 4 +++- package.json | 1 + 3 files changed, 6 insertions(+), 3 deletions(-) diff --git a/.github/workflows/deploy-gh-pages.yml b/.github/workflows/deploy-gh-pages.yml index 739da6f60..d230ba4b2 100644 --- a/.github/workflows/deploy-gh-pages.yml +++ b/.github/workflows/deploy-gh-pages.yml @@ -170,5 +170,5 @@ jobs: vercel-org-id: ${{ secrets.VERCEL_ORG_ID }} # Required vercel-project-id: ${{ secrets.VERCEL_PROJECT_ID }} # Required working-directory: ./docs/pages - env: - VERCEL_TOKEN: ${{ secrets.VERCEL_TOKEN }} # Required for Vercel Action + env: + VERCEL_TOKEN: ${{ secrets.VERCEL_TOKEN }} # Required for Vercel Action diff --git a/knip.config.ts b/knip.config.ts index 0ed7361e2..fdf956251 100644 --- a/knip.config.ts +++ b/knip.config.ts @@ -39,7 +39,9 @@ const config: KnipConfig = { 'src/workbench/extensions/manager/types/generatedManagerTypes.ts', 'packages/registry-types/src/comfyRegistryTypes.ts', // Used by a custom node (that should move off of this) - 'src/scripts/ui/components/splitButton.ts' + 'src/scripts/ui/components/splitButton.ts', + 'docs/pages/public/**/*', + 'docs/pages/public/vite.config.ts' ], compilers: { // https://github.com/webpro-nl/knip/issues/1008#issuecomment-3207756199 diff --git a/package.json b/package.json index 9076140c5..19b72af8f 100644 --- a/package.json +++ b/package.json @@ -10,6 +10,7 @@ "scripts": { "build:desktop": "nx build @comfyorg/desktop-ui", "build-storybook": "storybook build", + "build:pages": "bash scripts/build-pages.sh", "build:types": "nx build --config vite.types.config.mts && node scripts/prepare-types.js", "build": "cross-env NODE_OPTIONS='--max-old-space-size=8192' pnpm typecheck && nx build", "collect-i18n": "pnpm exec playwright test --config=playwright.i18n.config.ts",