diff --git a/.github/actions/dependencies/action.yml b/.github/actions/dependencies/action.yml index 0779c039d..743d1f438 100644 --- a/.github/actions/dependencies/action.yml +++ b/.github/actions/dependencies/action.yml @@ -1,6 +1,9 @@ name: 'Dependencies' description: 'Installs and builds dependencies for Cauldron' inputs: + root: + type: boolean + default: true packages-react: type: boolean default: false @@ -19,6 +22,9 @@ runs: - name: Install root dependencies run: yarn install --frozen-lockfile shell: bash + # Note: Checking for both boolean and string true values due to referenced bug: + # https://github.com/actions/runner/issues/2238 + if: ${{ inputs.root == true || inputs.root == 'true' }} - name: Install packages/react dependencies run: yarn install --cwd packages/react shell: bash diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index fd40d923e..f42f58302 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -13,6 +13,7 @@ jobs: - uses: actions/checkout@v4 - uses: ./.github/actions/dependencies with: + root: false packages-react: true packages-styles: true - name: Build packages