Description:
Actions/cache now supports choosing when to save and restore.
See actions/cache#1020 for a description.
So, setup-node can run the save automatically after packages install.
For that, the install command has to be called by setup-node as well.
It can be passed as an option, it can have a default (npm ci), and with corepack support #546 the defaults can be sensible, per package manager type.
So then, most devs will just use this action with flags cache and install and that's all they need to do.
Justification:
- more efficient runs
- less boilerplate to use
Are you willing to submit a PR?
Maybe, but not now