-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Open
Labels
feature requestNew feature or request to improve the current logicNew feature or request to improve the current logic
Description
Description:
Currently the cache key is always node-cache-{platform}-{packageManager}-{fileHash(lockfile)}
, which means the cache is invalid if any one dependency changed. I want to achieve something like this restore-keys
:
restore-keys: |
npm-feature-${{ hashFiles('package-lock.json') }}
npm-feature-
npm-
Justification:
It would be very helpful if the same cache can be reused across many places even if their package.json has changed.
Are you willing to submit a PR?
I noticed that Yarn berry already has some logic about this, can we expand that use cases to all package managers?
luke-xpanse, devversion and stefanprobst
Metadata
Metadata
Assignees
Labels
feature requestNew feature or request to improve the current logicNew feature or request to improve the current logic