From d661413a53f3b64758255fa9585675a19a16d2c5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=98=BF=E7=94=B7?= Date: Fri, 24 Apr 2026 08:38:34 +0800 Subject: [PATCH] =?UTF-8?q?ci:=20=E5=90=8C=E7=BA=A7=E6=A3=80=E5=87=BA=20Au?= =?UTF-8?q?thCoreJS=20=E4=BB=A5=E6=BB=A1=E8=B6=B3=20file:../AuthCoreJS?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit pnpm 安装时会解析本地 path 依赖,单仓库检出时 ../AuthCoreJS 不存在导致 ENOENT。 与 monorepo 布局一致:huike-front/ 与 AuthCoreJS/ 并列;pnpm/nodejs cache 指向子目录 lockfile。 Made-with: Cursor --- .github/workflows/ci.yml | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 8245b8d..15758f5 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -13,8 +13,17 @@ jobs: timeout-minutes: 20 steps: - - name: Checkout + # `package.json` uses `@authcore/commons`: `file:../AuthCoreJS` — need sibling checkout like local monorepo. + - name: Checkout huike-front uses: actions/checkout@v4 + with: + path: huike-front + + - name: Checkout AuthCoreJS + uses: actions/checkout@v4 + with: + repository: alchemy-studio/AuthCoreJS + path: AuthCoreJS - name: Setup pnpm uses: pnpm/action-setup@v4 @@ -26,9 +35,12 @@ jobs: with: node-version: 20 cache: pnpm + cache-dependency-path: huike-front/pnpm-lock.yaml - name: Install dependencies + working-directory: huike-front run: pnpm install --frozen-lockfile - name: Build + working-directory: huike-front run: pnpm run build