How does GitLab CI caching work?
Created by: kahwee
I'm a little confused how cache works and am not able to take advantage of it well. Can you see if I did anything wrong?
I previously cache (with untracked set to true) two directories at global level -- node_modules/
and dist/
Subsequently, I decided that cache dist/
is a bad idea and removed it.
Now, when I push an update and a rebuild occurs, I noticed dist/
is always in the cache together with node_modules
no matter what.
Is there any way I can get rid of dist/
being cached?
Thanks.