File tree Expand file tree Collapse file tree 1 file changed +8
-3
lines changed
Expand file tree Collapse file tree 1 file changed +8
-3
lines changed Original file line number Diff line number Diff line change @@ -3,12 +3,17 @@ FROM ghcr.io/actions/actions-runner:2.329.0
33RUN sudo apt update -y && \
44 sudo apt install -y curl make bash jq
55
6- # Install Node.js 22 & pnpm 10
6+ # Install Node.js 22
77RUN curl -fsSL https://deb.nodesource.com/setup_22.x | sudo -E bash - && \
88 sudo apt-get install -y nodejs
99
10- # Install pnpm globally
11- RUN npm install -g pnpm
10+ # Install pnpm 10 using corepack (skip interactive prompts)
11+ RUN sudo corepack enable && \
12+ sudo corepack prepare pnpm@10.20.0 --activate && \
13+ 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
1217
1318# Install Docker Buildx
1419RUN BUILDX_VERSION=$(curl -s "https://api.github.com/repos/docker/buildx/releases/latest" | jq -r .tag_name) && \
You can’t perform that action at this time.
0 commit comments