node-orb icon indicating copy to clipboard operation
node-orb copied to clipboard

Cache based on .pnpm-lock.yaml

Open clarkenciel opened this issue 3 years ago • 3 comments

Describe Request:

It would be nice to be able to cache based on .pnpm-lock.yaml when using pnpm as a package manager in the install-packages command. Granted, this might amount to "npm support."

Examples:

jobs:
  test:
    - run:
        name: install pnpm
        command: sudo npm i -g pnpm
    - checkout
    - node/install-packages:
        override-ci-command: pnpm i
        cache-path: ~/.pnpm-store

Supporting Documentation Links:

pnpm CI integration docs

clarkenciel avatar Jun 24 '21 16:06 clarkenciel

Hi! Thanks for this request! I'll look into this shortly :)

Jaryt avatar Dec 13 '21 23:12 Jaryt

@Jaryt any updates on this front? pnpm is increasingly popular. We just were testing things and it cut our initial install times from 3 minutes to 1 minute on a client app, so would love to see support here. GitHub Actions seemingly supports it already

acorncom avatar Jul 27 '22 11:07 acorncom

Would be great if this could be fixed

sureyeaah avatar Nov 17 '22 09:11 sureyeaah

Pnpm support added in this version https://circleci.com/developer/orbs/orb/circleci/node?version=5.3.0#commands-install-pnpm. This should allows you to cache.

marboledacci avatar Aug 21 '24 14:08 marboledacci