How to invalidate Bitbucket's Pipeline node cache if package.json is changed

Viewed 310

Currently, I'm caching node_modules on Bitbucket which doesn't get cleared even if package.json is changed. I have found Clear caches pipe which automatically clears cache. Is it possible to run this pipeline based on the condition that package.json is changed?

0 Answers
Related