Skip to content

[HOLD for payment 2023-06-21] Cache node_modules to speed up CI/CD #20433

Description

@roryabraham

Problem

Our setupNode action runs a lot and often takes 3-5 minutes, which is pretty slow.

Solution

While the actions/setup-node action caches npm / node itself, it doesn't cache the actual node_modules. This means that we're doing a clean install every time, on slow CI machines, and it takes a while. Instead, let's cache the node_modules directory and only run npm ci if needed.

Metadata

Metadata

Assignees

Labels

Awaiting PaymentAuto-added when associated PR is deployed to productionNewFeatureSomething to build that is a new item.WeeklyKSv2

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions