Currently I had Installed Jenkins in Kubernetes Cluster and Doing CD-CD With Multi-branch pipeline, For Pipeline I used my custom image where node.js and other Required setup is Installed.
Now I Want to Setup Caching to Speed-up the CI-CD, I had Done Research for the same and Implemented possible ways, but i want to setup ~/.npm directory to be cached...
Is There is any option that i can configure and cache ~/.npm directory.
I Gone through the documents https://simonplend.com/how-to-speed-up-npm-install-in-your-node-js-builds/ to cache the ~/.npm directory. Anyone can help here to cache the ~/.npm directory