My repo current setup under yarn workspace. After I setup caching, everything works fine till repo has no new dependencies.
When I add new dependencies and create Pull Request with yarn.lock file, the Pipeline still download old cache instead of install new dependencies and create new cache.
Is it expected behavior?
If "yes", am I need to manually delete old caches before create Pull Request contains yarn.lock file?
If "no", how can I setup for pipelines force to install new dependencies and create new caches?