4 Commits
Author SHA1 Message Date
gouki 3b67d893b6 fix(ci): npm install 加 --legacy-peer-deps,规避 arborist 在 vitest peer 上的 edgesOut 崩溃
Build and Publish Commercial Web / build (push) Successful in 5m3s
2026-10-21 09:20:46 +00:00
gouki df63a06aea fix(ci): 前端构建改用 npm——core 为独立包无需 pnpm 工作区,绕开 runner 安装 pnpm 失败
Build and Publish Commercial Web / build (push) Failing after 3m10s
2026-10-21 09:04:51 +00:00
gouki a024d5dcf6 fix(ci): pnpm 改用 linuxstatic 单文件二进制,绕开 npm registry 安装
Build and Publish Commercial Web / build (push) Failing after 20s
2026-10-21 08:55:01 +00:00
gouki 98d6a67a5a fix(ci): pnpm 版本对齐 11——pnpm 9 不识别 allowBuilds,esbuild 构建脚本被跳过
Build and Publish Commercial Web / build (push) Failing after 58s
2026-10-21 08:43:17 +00:00
+11 -21
View File
@@ -105,20 +105,6 @@ jobs:
fi
echo "PATH=$TOOLDIR/node/bin:$PATH" >> "$GITEA_ENV"
- name: Install pnpm
run: |
export HOME="$RUNNER_WORKSPACE"
# pnpm 随工具链缓存,避免每次重复下载
TOOLDIR="$RUNNER_WORKSPACE/.lunar-toolchain"
if [ ! -x "$TOOLDIR/pnpm/bin/pnpm" ]; then
rm -rf "$TOOLDIR/pnpm"
# 亚洲 runner 优先走 npmmirror,失败回落官方源
npm install -g --prefix "$TOOLDIR/pnpm" --registry=https://registry.npmmirror.com pnpm@9 \
|| npm install -g --prefix "$TOOLDIR/pnpm" --registry=https://registry.npmjs.org pnpm@9
fi
echo "PATH=$TOOLDIR/pnpm/bin:$PATH" >> "$GITEA_ENV"
"$TOOLDIR/pnpm/bin/pnpm" --version
- name: Run Go tests
working-directory: server
run: |
@@ -133,14 +119,18 @@ jobs:
CI: "true"
run: |
export HOME="$RUNNER_WORKSPACE"
# 用户级 npmrc:pnpm install 依赖下载走镜像源(lockfile 校验不受影响)
# 依赖下载走 npmmirror;npm/pnpm 全局限定在部分 runner 不稳定,
# 故不使用 pnpm 工作区——core 是独立包,npm install 即可构建
npm config set registry https://registry.npmmirror.com || true
# web/ 工作区:装依赖并构建 @lunar/core(web-commercial 的 file: 依赖)
cd web
pnpm install --frozen-lockfile
pnpm --filter @lunar/core build
cd ../web-commercial
pnpm install --frozen-lockfile
# @lunar/core:web-commercial 的 file: 依赖与 vite/tsconfig 别名目标
# --legacy-peer-deps:npm10 的 arborist 在 vitest 可选 peer 上会
# edgesOut 崩溃,跳过 peer 解析即可(构建不需要)
cd web/packages/core
npm install --legacy-peer-deps
npx tsup
test -f dist/index.js
cd ../../../web-commercial
npm install --legacy-peer-deps
npx tsc -b
npx vite build
test -f dist/index.html