# The following is needed because we can not use `cache: true` for `setup-node`, as it does not support Corepack yet and mess up with the cache location if ran after Node is installed
- name:Enable corepack
shell:bash
run:corepack enable
- name:Get yarn cache directory path
id:yarn-cache-dir-path
shell:bash
run:echo "dir=$(yarn config get cacheFolder)" >> $GITHUB_OUTPUT
- uses:actions/cache@v3
id:yarn-cache# use this to check for `cache-hit` (`steps.yarn-cache.outputs.cache-hit != 'true'`)