File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -7,13 +7,11 @@ RUN sudo apt update -y && \
77RUN 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 等),不装浏览器二进制
You can’t perform that action at this time.
0 commit comments