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

pnpm cache could prune store before caching

Open oBusk opened this issue 4 months ago • 1 comments

Description:

To avoid the pnpm store growing with each update of packages, the action could guarantee that the cached store is as narrow as possible by running pnpm store prune before storing the cache.

This should result in cache not ballooning over time, and avoiding caching unused packages.

Justification:

Could result in quicker cache save/restore for long running workflows using cache: 'pnpm'

Are you willing to submit a PR?

Yeah I could look at it, if it's something people agree would be useful

oBusk avatar Oct 28 '25 00:10 oBusk

Hello @oBusk👋, Thank you for this feature request. We will investigate it and get back to you as soon as we have some feedback.

priya-kinthali avatar Oct 29 '25 03:10 priya-kinthali