Skip to content

Commit f7bfeac

Browse files
committed
chore(ci): fix scripts
1 parent e93d58b commit f7bfeac

File tree

1 file changed

+8
-3
lines changed

1 file changed

+8
-3
lines changed

Dockerfile

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,17 @@ FROM ghcr.io/actions/actions-runner:2.329.0
33
RUN 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
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 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
1419
RUN BUILDX_VERSION=$(curl -s "https://api.github.com/repos/docker/buildx/releases/latest" | jq -r .tag_name) && \

0 commit comments

Comments
 (0)