Skip to content

Commit ccd9159

Browse files
committed
ci: Fix corepack issue in CI and docker build
1 parent f1d2a80 commit ccd9159

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

docker/Dockerfile

+3-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,9 @@ FROM node:22-alpine AS base
44
WORKDIR /app
55
ENV PNPM_HOME="/pnpm"
66
ENV PATH="$PNPM_HOME:$PATH"
7-
RUN corepack enable
7+
8+
# https://github.com/hoarder-app/hoarder/issues/967
9+
RUN npm install -g [email protected] && corepack enable
810

911
# Check https://github.com/nodejs/docker-node/tree/b4117f9333da4138b03a546ec926ef50a31506c3#nodealpine to understand why libc6-compat might be needed.
1012
RUN apk add --no-cache libc6-compat make g++ py3-pip linux-headers

tooling/github/setup/action.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ runs:
1515
run: pnpm add -g turbo
1616

1717
- shell: bash
18-
run: corepack enable
18+
run: npm install -g [email protected] && corepack enable
1919

2020
- shell: bash
2121
run: pnpm install

0 commit comments

Comments
 (0)