setup-node
setup-node copied to clipboard
refactor: minor changes follows #1348
Description:
The PR follows #1348 with a bugfix and a very slight performance improvement.
- Only enable package cache when the cache feature is available
- In #1348 new
package-manager-cachelogic is not guarded byisCacheFeatureAvailable(), the PR fixes this.
- In #1348 new
- Don't read
package.jsonif the previous version'scacheconfig is used- We don't have to determine the package manager if the user has explicitly specified which package manager to use, which improves performance a little.
Related issue:
Check list:
- [ ] Mark if documentation changes are required.
- [ ] Mark if tests were added or updated to cover the changes.