Effectively using pnpm caching in GitHub Actions for pull request-only workflows
I have GitHub Actions jobs to check if the Node project can build as well as lint and format the code. The workflow is triggered by pull requests. I use pnpm, and the pnpm/setup action can cache the store to speed up the workflow. But the documentation of the pnpm/setup action recommends not restoring the cache when running the workflow from pull requests: To restore the store without saving it, set save-cache: false. This is useful for jobs that should not write to the cache, such as pull requests or all but one job in a matrix. The lockfile verification cache is still saved. Because the cach
0 upvotes
View original discussion ↗
Comments
Sign in or sign up to comment and upvote.
No comments yet.