Skip to content

Commit 7f80b03

Browse files
committed
fix: pnpm use npm install
1 parent a47b961 commit 7f80b03

1 file changed

Lines changed: 4 additions & 6 deletions

File tree

Dockerfile

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -7,13 +7,11 @@ RUN sudo apt update -y && \
77
RUN curl -fsSL https://deb.nodesource.com/setup_22.x | sudo -E bash - && \
88
sudo apt-get install -y nodejs
99

10-
# Install pnpm 10 using corepack (skip interactive prompts)
11-
RUN sudo corepack enable && \
12-
sudo corepack prepare pnpm@10.28.1 --activate && \
10+
# Install pnpm globally and disable Corepack (avoid Corepack downloading pnpm on every CI run)
11+
RUN sudo corepack disable && \
12+
sudo npm install -g pnpm@10.28.1 && \
1313
sudo mkdir -p /home/runner/.npm /home/runner/.config /home/runner/.cache && \
14-
sudo chown -R runner:runner /home/runner/.npm /home/runner/.config /home/runner/.cache && \
15-
# Trigger actual pnpm download without prompts
16-
COREPACK_ENABLE_DOWNLOAD_PROMPT=0 pnpm --version
14+
sudo chown -R runner:runner /home/runner/.npm /home/runner/.config /home/runner/.cache
1715

1816
# Install Playwright system dependencies (for Chromium)
1917
# 只装 OS 级依赖(libglib, libnss, libatk 等),不装浏览器二进制

0 commit comments

Comments
 (0)