Skip to content

[workflow]: Cache npm dependencies #2208

Description

@SHUBHANSHU602

###Related to #2133

Cache npm dependencies

The workflow installs dependencies using npm ci on every run. Enabling the built-in npm cache in actions/setup-node could reduce setup time.

Proposed change:

- uses: actions/setup-node@v4
  with:
    node-version: "${{ steps.lockversion.outputs.version }}"
    cache: npm

(If needed, cache-dependency-path can be configured based on the repository's lockfile location.)

Benefits:

  • Faster dependency installation.
  • Reduced workflow execution time.
  • Lower network usage during CI

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