From 3e004b5976e97e3a2fcc83837e39e0857fb05a56 Mon Sep 17 00:00:00 2001 From: Turadg Aleahmad Date: Thu, 22 Aug 2024 11:17:08 -0700 Subject: [PATCH] ci: support corepack in restore-node --- .github/actions/restore-node/action.yml | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) 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