CI: consider adding npm dependency caching to setup-node step · Issue #7196 · expressjs/express · GitHub
Skip to content

CI: consider adding npm dependency caching to setup-node step #7196

@eddieteall

Description

@eddieteall

I was exploring the CI workflow as part of my university project on GitHub Actions and noticed that the setup-node step doesn't currently include dependency caching.

The current setup-node step looks like this:

Adding cache: 'npm' would allow GitHub Actions to cache node_modules between runs, which can reduce install time on repeated builds:

I tested this on my own Node.js project and it worked without any other changes needed. I appreciate this may already be a considered decision, so happy to hear if there's a reason it's been left out.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions