chore(repo): migrate from yarn to pnpm (#1598)

This commit is contained in:
Alex
2026-06-05 08:32:57 +01:00
committed by GitHub
parent f6661fec0b
commit e83a143c36
28 changed files with 11649 additions and 14155 deletions
+18 -10
View File
@@ -1,18 +1,26 @@
FROM --platform=$BUILDPLATFORM node:24-alpine AS frontend-build
WORKDIR /workspace/frontend
ENV PNPM_HOME="/pnpm"
ENV PATH="${PNPM_HOME}:${PATH}"
COPY .yarnrc.yml /workspace/.yarnrc.yml
COPY frontend/package.json frontend/yarn.lock ./
WORKDIR /workspace
RUN corepack enable
RUN --mount=type=cache,target=/workspace/.yarn/cache \
corepack yarn install --immutable
RUN npm install -g pnpm@11.3.0
COPY frontend/ ./
RUN --mount=type=cache,target=/workspace/.yarn/cache \
--mount=type=cache,target=/workspace/frontend/.angular/cache \
CI=1 NG_CLI_ANALYTICS=false corepack yarn build:prod
COPY pnpm-lock.yaml pnpm-workspace.yaml ./
RUN --mount=type=cache,target=/pnpm/store \
pnpm config set store-dir /pnpm/store && \
pnpm fetch
COPY package.json ./
COPY frontend/package.json ./frontend/
COPY tools/release/package.json ./tools/release/
RUN --mount=type=cache,target=/pnpm/store \
pnpm install --offline --frozen-lockfile
COPY frontend/ ./frontend/
RUN --mount=type=cache,target=/workspace/frontend/.angular/cache \
CI=1 NG_CLI_ANALYTICS=false pnpm -C frontend run build:prod
FROM --platform=$BUILDPLATFORM gradle:9.5.1-jdk25-alpine AS backend-build