Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Caching npm install #41

Closed
nathany opened this issue Aug 22, 2019 · 3 comments
Closed

Caching npm install #41

nathany opened this issue Aug 22, 2019 · 3 comments
Assignees

Comments

@nathany
Copy link

nathany commented Aug 22, 2019

Are there plans to add caching for GitHub Actions? For example, in CircleCI we can greatly reduce the number of VM minutes spent with something like this:

- save_cache:
    key: v1-npm-dependency-cache-{{ checksum "package-lock.json" }}
    paths:
      - node_modules

(and the corresponding restore_cache).

I saw a tools cache for caching the Node.js download, but I'm not sure if that should be used for this.

@damccorm damccorm self-assigned this Aug 22, 2019
@damccorm
Copy link
Contributor

The tool cache thing is a different concept and won't persist across builds.

Right now, we don't have exactly what you're looking for. With that being said, this is high on our backlog and something that I think lots of people want (self included 😄). We're tracking this in the toolkit, so for cleanliness I'd probably prefer we close this issue here and follow up there - seem fair?

@nathany
Copy link
Author

nathany commented Aug 22, 2019

Fair enough. Sorry I didn't search that repo for issues in advance.

@nathany nathany closed this as completed Aug 22, 2019
@damccorm
Copy link
Contributor

No worries, opening an issue in this repo was perfectly reasonable - happy to give a pointer in the right direction!

krzyk pushed a commit to krzyk/setup-node that referenced this issue Apr 11, 2023
deining pushed a commit to deining/setup-node that referenced this issue Nov 9, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants