From 45656d3323d164cf3917a8d6ea21b1a4f34a9844 Mon Sep 17 00:00:00 2001 From: JJ Kasper Date: Wed, 12 Jun 2024 09:42:50 -0700 Subject: [PATCH] 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 --- .github/workflows/build_and_deploy.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/build_and_deploy.yml b/.github/workflows/build_and_deploy.yml index 83c2f9b183235..a3f254a6f04c9 100644 --- a/.github/workflows/build_and_deploy.yml +++ b/.github/workflows/build_and_deploy.yml @@ -283,7 +283,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 }}