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

ci(workflow): add cache to workflows using actions/setup-node #195

Closed
wants to merge 1 commit into from
Closed

ci(workflow): add cache to workflows using actions/setup-node #195

wants to merge 1 commit into from

Conversation

oscard0m
Copy link

Description

Add cache to workflows using actions/setup-node

Context

setup-node GitHub Action just released a new option to add cache to steps using it.

You can find the details here: https://github.blog/changelog/2021-07-02-github-actions-setup-node-now-supports-dependency-caching/


🤖 This PR has been generated automatically by this octoherd script, feel free to run it in your GitHub user/org repositories! 💪🏾

@oscard0m
Copy link
Author

oscard0m commented Jul 18, 2021

Since actions/cache is using node_modules and not a local ~/.npm folder I'm not sure if this PR have sense: actions/setup-node#286

@oscard0m oscard0m closed this Jul 18, 2021
@oscard0m oscard0m reopened this Jul 18, 2021
@lydell
Copy link
Member

lydell commented Jul 18, 2021

Hi! Thanks for the pull request!

This is all new to me, and I haven’t really had time to play around with the new caching stuff. But this documentation suggests that one shouldn’t cache node_modules: https://github.com/actions/cache/blob/main/examples.md#node---npm

@oscard0m
Copy link
Author

Hi! Thanks for the pull request!

This is all new to me, and I haven’t really had time to play around with the new caching stuff. But this documentation suggests that one shouldn’t cache node_modules: https://github.com/actions/cache/blob/main/examples.md#node---npm

Should we try to remove this actions/cache step then @lydell ?

@lydell
Copy link
Member

lydell commented Jul 19, 2021

Should we try to remove this actions/cache step then @lydell ?

Yes, feel free to experiment! Would be interesting to see if there’s any time difference, and if npm ci --offline succeeds when there is a cache (to verify that the cache helps against npm outage).

@lydell
Copy link
Member

lydell commented Sep 26, 2021

Status: IMO the current setup works just fine, and I don’t really understand the new way of caching.

Do you still feel like experimenting with this? Otherwise I think we’re going to close this one (unless you convince me that the new caching approach is better.)

@lydell
Copy link
Member

lydell commented Oct 9, 2021

Closing because no response.

@lydell lydell closed this Oct 9, 2021
This was referenced Oct 16, 2021
@oscard0m
Copy link
Author

Sorry for the delay on this @lydell, following up here: #210

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

Successfully merging this pull request may close these issues.

2 participants