-
Notifications
You must be signed in to change notification settings - Fork 0
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
Fix gh-pages deployment workflow #36
Comments
I'm unsure why you're fixing it by disabling this instead of creating a package-lock.json so that caching can work properly? https://github.com/actions/setup-node
Caching is to speed up the build process. Have you compared the build time before and after caching is enabled? and before and after cache-dependency-path is properly specified? |
I'm not sure I understand the question or if you misunderstood my description, I am not disabling anything, all I am doing is assigning a default value to the variable |
I'm saying that we may want to look into whether this caching work. Caching should be based on the packages definition, most likely a file such as package-lock.json. why caching?looking up and installing dependencies is an expensive network/disk operation. by caching dependencies, we accelerate build time. after the first caching step, subsequent calls should be faster. what should be the value of cache-dependency-path?looking at the source for setup-node, we have this:
which is implemented here:it and only uses cacheDependencyPath if the package manager is yarn, which we don't use (we decided on npm) this means that cacheDependencyPath = '' and default should not be '.' but ''; probably leftover from when we switched from yarn what does caching neeed?it needs a lock file for the dependencies:
what is package-lock.json and how do we use it?
do we have package-lock.json in our projects?
|
well I added it because of docusaurus when I deployed it I was getting issues because the package wasn't at the root of the project at the time |
Won't do. We are now using kubernetes to deploy our solution |
@ThomasCardin ok to close this, but there's also a discussion about caching during in #36 (comment) that I would like to have followed up as we want to accelerate build time of our dockers |
The workflow currently requires a cach dependancy which is useless because most of the time it's just the root and it can just default back to that if it's not provided like it is currently doing for some of the other inputs
The text was updated successfully, but these errors were encountered: