diff --git a/.github/actions/restore-node/action.yml b/.github/actions/restore-node/action.yml index f8dc1b00cc9f..b93feb5bf878 100644 --- a/.github/actions/restore-node/action.yml +++ b/.github/actions/restore-node/action.yml @@ -111,6 +111,10 @@ runs: shell: bash run: git config --global url."https://github.com/".insteadOf ssh://git@github.com/ + # Before setup-node because that action runs `yarn cache dir`. See https://github.com/actions/setup-node/issues/480#issuecomment-1915448139 + - run: corepack enable + shell: bash + - uses: actions/setup-node@v4 with: node-version: ${{ inputs.node-version }} @@ -122,9 +126,6 @@ runs: - uses: kenchan0130/actions-system-info@master id: system-info - - run: corepack enable - shell: bash - - name: restore built files id: built uses: actions/cache@v4