To find the solution, modify the yarn source in *.yml
hooks:
after_code:
- exec:
cd: $home
cmd:
- grep -rl "registry.yarnpkg.com" . | tee ./find_cache.txt | xargs sed -i "s/registry.yarnpkg.com/registry.npmmirror.com/g" && cat ./find_cache.txt && rm ./find_cache.txt