From 8e2cdff4396089c85da62f4e8ecef7c2f57f4ca5 Mon Sep 17 00:00:00 2001 From: Beezy Date: Thu, 11 Jul 2024 01:15:09 -0400 Subject: [PATCH] Enable corepack before running node setup action, workaround bug https://github.com/actions/setup-node/issues/480 --- .github/actions/setup-env/action.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.github/actions/setup-env/action.yml b/.github/actions/setup-env/action.yml index ca1c4fb01..44d7db049 100644 --- a/.github/actions/setup-env/action.yml +++ b/.github/actions/setup-env/action.yml @@ -24,6 +24,9 @@ inputs: runs: using: "composite" steps: + - name: Enable Corepack + if: ${{ inputs.install-node == 'true' }} + run: corepack enable - name: Use Node.js if: ${{ inputs.install-node == 'true' }} uses: actions/setup-node@v4