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

cache frontend builds #248

Closed
cypressf opened this issue Jan 26, 2022 · 4 comments
Closed

cache frontend builds #248

cypressf opened this issue Jan 26, 2022 · 4 comments

Comments

@cypressf
Copy link
Collaborator

actions/setup-node says the cache was restored, but the yarn cache is only 244 bytes, and doesn't seem to speed up the build time. why is this?

@cypressf cypressf created this issue from a note in Biweekly tasks (In progress) Jan 26, 2022
@cypressf
Copy link
Collaborator Author

cypressf commented Jan 26, 2022

This is sus: https://github.com/cypressf/climate-risk-map/runs/4958804935?check_suite_focus=true#step:3:13

/usr/local/bin/yarn --version
1.22.17

but on my dev machine

yarn --version
3.1.0

@cypressf
Copy link
Collaborator Author

cypressf commented Jan 27, 2022

in the runner

/usr/local/bin/yarn cache dir
/home/runner/.cache/yarn/v6

but on my dev machine, from frontend

yarn config get cacheFolder
.yarn/cache

@cypressf
Copy link
Collaborator Author

huh... when building the frontend it uses the correct version of yarn. in the builder (https://github.com/cypressf/climate-risk-map/runs/4959727715?check_suite_focus=true#step:4:11)

which yarn
/usr/local/bin/yarn
/usr/local/bin/yarn --version
3.1.0
yarn --version
3.1.0

@cypressf
Copy link
Collaborator Author

okay I've decided I'm sufficiently annoyed debugging. I'll build my own based on actions/setup-node#325

Biweekly tasks automation moved this from In progress to Done Jan 27, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Development

No branches or pull requests

1 participant