diff --git a/.github/actions/install/action.yml b/.github/actions/install/action.yml index 420652c..58f8639 100644 --- a/.github/actions/install/action.yml +++ b/.github/actions/install/action.yml @@ -19,20 +19,10 @@ inputs: description: 'Cache yarn install state, might speed up resolution step when node-modules cache is activated (invalidated lock/os/node-version/branch)' required: false default: 'false' - enable-corepack: - description: 'Enable corepack' - required: false - default: 'true' runs: using: 'composite' steps: - - name: ⚙️ Enable corepack - if: inputs.enable-corepack == 'true' - shell: bash - working-directory: ${{ inputs.cwd }} - run: corepack enable - - name: ⚙️ Expose yarn config as "$GITHUB_OUTPUT" id: yarn-config shell: bash diff --git a/.github/workflows/cd.yml b/.github/workflows/cd.yml index 97aab3f..2b9cccb 100644 --- a/.github/workflows/cd.yml +++ b/.github/workflows/cd.yml @@ -22,6 +22,12 @@ jobs: git config --global user.name "GitHub Action" git config --global user.email "action@github.com" + - name: ⚙️ Enable corepack + if: inputs.enable-corepack == 'true' + shell: bash + working-directory: ${{ inputs.cwd }} + run: corepack enable + - name: Set up Node.js version 20.x uses: actions/setup-node@v4 with: diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 4b5b8c2..d9bdbfc 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -25,6 +25,12 @@ jobs: - name: Check out source code uses: actions/checkout@v4 + - name: ⚙️ Enable corepack + if: inputs.enable-corepack == 'true' + shell: bash + working-directory: ${{ inputs.cwd }} + run: corepack enable + - name: Set up Node.js version ${{ matrix.node }} uses: actions/setup-node@v4 with: