Ensure turbo is setup when building in docker (#66804)

This ensures we always set up turbo to the version we expect even if
we're building in docker since the cache is pulled outside of docker.

x-ref:
https://github.com/vercel/next.js/actions/runs/9484631800/job/26134568488
This commit is contained in:
JJ Kasper 2024-06-12 09:42:50 -07:00 committed by GitHub
parent f34445e25a
commit 73918c6711
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -279,7 +279,7 @@ jobs:
# issues with turbo caching
- name: pull build cache
if: ${{ matrix.settings.docker }}
run: node ./scripts/pull-turbo-cache.js ${{ matrix.settings.target }}
run: npm i -g turbo@${{ env.TURBO_VERSION }} && node ./scripts/pull-turbo-cache.js ${{ matrix.settings.target }}
- name: check build exists
if: ${{ matrix.settings.docker }}