Skip to content

CICD-071 · Install a pnpm worktree frozen ​

Encyclopedia · Language build toolchains · All snippets

Previous · CICD-070 · Next · CICD-072

1. Where it fits ​

  • Placement Bash run step following checkout, or equivalent lab terminal.
  • Prerequisites source repository with committed build manifest and pinned matching toolchain.
  • Platforms local-linux, github-actions, gitea-actions.

2. Copy the snippet ​

bash
corepack pnpm install --frozen-lockfile

3. How it works ​

Corepack starts the project's selected pnpm release. The frozen flag makes an out-of-sync lockfile a build error before package scripts run.

4. Verify the result ​

Provision Corepack and the pinned pnpm version. Lock drift should fail CI.

Validation syntax-validated (Bash parse). Status definitions.