From 243459eb2d194c30e95cb9ef9b89a637c927479e Mon Sep 17 00:00:00 2001 From: Haitao Pan Date: Sat, 6 Jun 2026 06:46:22 +0800 Subject: [PATCH] ci: use temporary pnpm for source deploy --- .github/workflows/deploy.yml | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 2acb28b..72aa4e5 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -182,12 +182,11 @@ jobs: git -C "${SOURCE_DIR}" remote add origin "${INSTALL_SPEC}" git -C "${SOURCE_DIR}" fetch --depth 1 origin "${INSTALL_REF}" git -C "${SOURCE_DIR}" checkout --detach FETCH_HEAD - if command -v corepack >/dev/null 2>&1; then - corepack enable - corepack prepare pnpm@10.28.2 --activate - fi - pnpm --dir "${SOURCE_DIR}" install --frozen-lockfile - pnpm --dir "${SOURCE_DIR}" build + TOOL_DIR="${STATE_DIR}/tools" + npm install --prefix "${TOOL_DIR}" pnpm@10.28.2 + PNPM="${TOOL_DIR}/node_modules/.bin/pnpm" + "${PNPM}" --dir "${SOURCE_DIR}" install --frozen-lockfile + "${PNPM}" --dir "${SOURCE_DIR}" build npm install -g "${SOURCE_DIR}" elif [ "${INSTALL_SOURCE}" = "github" ]; then global_root="$(npm root -g)"