actions/cache 知見
node_modulesをキャッシュしない
Note: It is not recommended to cache node_modules, as it can break across Node versions and won't work with npm ci
npm ciやyarn installがキャッシュ結果を利用しないことで,パッケージ構成が変化したときに全部取得し直しになる
npm ciを使う
yarn cache dirの位置をキャッシュ
バージョンで変わる
今確かv6
yarn install --frozen-lockfileを使う
.yarn/cacheをキャッシュ
.yarnrc.ymlをいじっている場合変わりうるので注意
enableGlobalCacheをここで有効化している場合(するなよ)など,マジでわからん場合yarn config get cacheFolderで取れる
yarn install --immutableを使う