Skip to content

Commit 8fccbe6

Browse files
committed
Fix pnpm not found in CI
1 parent b11de38 commit 8fccbe6

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

Earthfile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,8 @@ docker-musl:
9494

9595
setup-playwright:
9696
FROM mcr.microsoft.com/playwright:v1.44.1-jammy
97-
RUN curl -fsSL https://get.pnpm.io/install.sh | env PNPM_VERSION=9.3.0 sh -
97+
RUN curl -fsSL https://get.pnpm.io/install.sh | env PNPM_VERSION=9.3.0 ENV="$HOME/.shrc" SHELL="$(which sh)" sh -
98+
ENV PATH="/root/.local/share/pnpm:$PATH"
9899
RUN apt update && apt install -y zip
99100
RUN pnpx playwright install --with-deps
100101
RUN npm install -g netlify-cli

browser/Earthfile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,8 @@ all:
1010
BUILD +typedoc
1111

1212
deps:
13-
RUN curl -fsSL https://get.pnpm.io/install.sh | env PNPM_VERSION=9.3.0 sh -
13+
RUN curl -fsSL https://get.pnpm.io/install.sh | env PNPM_VERSION=9.3.0 ENV="$HOME/.shrc" SHELL="$(which sh)" sh -
14+
ENV PATH="/root/.local/share/pnpm:$PATH"
1415
COPY package.json pnpm-lock.yaml pnpm-workspace.yaml .
1516
COPY data-browser/package.json data-browser/.
1617
COPY lib/package.json lib/.

0 commit comments

Comments
 (0)