My ‘run yarn command’ step’ does not cache node_modules even if the ‘cache node_modules’ dropdown selected option is ‘yes’. I download the cached file from settings and it is not there, and also if I run another build it has to install all the dependencies again.
I’ve tried caching ‘$BITRISE_SOURCE_DIR/node_modules’ path but it also does not work.
As a workaround, I’ve cached the whole project ($BITRISE_SOURCE_DIR). But I’ve read this is not recommended and could lead to some issues and does not seem to be the proper way to do it also.
Side note: the push step is after the ‘run yarn command’ and the pull is before.