1
0
mirror of https://github.com/bitwarden/browser synced 2026-03-02 03:21:19 +00:00

pnpm workflows

This commit is contained in:
Anders Åberg
2025-12-15 22:32:37 +01:00
parent 422f94a8c5
commit 40a8a084bc
5 changed files with 33363 additions and 37 deletions

View File

@@ -4,10 +4,13 @@
ARG NODE_VERSION=20
FROM --platform=$BUILDPLATFORM node:${NODE_VERSION}-alpine AS node-build
# Enable pnpm via corepack
RUN corepack enable pnpm
WORKDIR /source
COPY package*.json ./
COPY package.json pnpm-lock.yaml pnpm-workspace.yaml ./
COPY . .
RUN npm ci
RUN pnpm install --frozen-lockfile
# Remove commercial packages if LICENSE_TYPE is not 'commercial'
ARG LICENSE_TYPE=oss
@@ -17,7 +20,7 @@ RUN if [ "${LICENSE_TYPE}" != "commercial" ] ; then \
WORKDIR /source/apps/web
ARG NPM_COMMAND=dist:bit:selfhost
RUN npm run ${NPM_COMMAND}
RUN pnpm run ${NPM_COMMAND}
###############################################
# Build stage 2 #