Skip to content

Use the new granular cache actions #654

@wmertens

Description

@wmertens

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    feature requestNew feature or request to improve the current logic

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions