Then wrap your job in a untar/tar:
tar --use-compress-program zstd -xf node_modules.tar.zst || true
YOUR NORMAL JOB
tar --use-compress-program zstd -cf node_modules.tar.zst node_modules
(and you can delete things you don't need if you want)