-
-
Notifications
You must be signed in to change notification settings - Fork 216
Open
Description
Our current flow:
We use docker
+ pnpm fetch
COPY --chown=node:node pnpm-*.yaml .npmrc ./
RUN npm install -g pnpm@^8 # curernt usage without corepack
# RUN corepack enable # <= but we want this one
RUN --mount=type=cache,id=pnpm,target=/pnpm/store pnpm fetch --loglevel=warn --ignore-scripts
This means we don't cache the package.json
file before the pnpm fetch
execution.
This allows us to worry about package.json
changes.
But corepack will always install the latest version of pnpm
instead of a specific one.
If store the packageManager
property in a lock file, this will solve the problem.
khokm
Metadata
Metadata
Assignees
Labels
No labels