npm dependencies 다운 받는 게 시간 너무 많이 잡아먹어서


그냥 캐시하려고 찾는데 어떤 식으로 해야하지


공식 가이드 보면 이렇게 하라는데


- name: Get yarn cache directory path id: yarn-cache-dir-path run: echo "::set-output name=dir::$(yarn cache dir)" - name: Cache yarn dependencies uses: actions/cache@v2 with: path: ${{ steps.yarn-cache-dir-path.outputs.dir }} key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }} restore-keys: | ${{ runner.os }}-yarn-


https://stackoverflow.com/a/62244232/9379639


여기 보면 그냥 yarn --prefer-offline 쓰라하네?


근데 --prefer-offline 이 먹힌다는 건 actions/cache 없이도


깃허브 액션 자체 컨테이너에서 캐시를 저장한다는 소리 아님?