diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 6f45a60..59f6ac5 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -10,6 +10,7 @@ env: CACHED_DEPENDENCY_PATHS: | ${{ github.workspace }}/.yarn/cache ${{ github.workspace }}/node_modules + ${{ github.workspace }}/packages/*/node_modules CACHED_BUILD_PACKAGE_UI_PATHS: ${{ github.workspace }}/packages/ui/dist CACHED_BUILD_PACKAGE_CORE_PATHS: ${{ github.workspace }}/packages/core/dist DEFAULT_NODE_VERSION: "v20.11.1" @@ -76,11 +77,16 @@ jobs: node-version: ${{ env.DEFAULT_NODE_VERSION }} - name: Check dependency cache + id: cache-deps uses: actions/cache@v4 with: path: ${{ needs.job_install_dependencies.outputs.yarn_cache_dir_path }} key: ${{ needs.job_install_dependencies.outputs.dependency_cache_key }} + - name: Install dependencies + if: steps.cache-deps.outputs.cache-hit != 'true' + run: yarn install --immutable + - name: Compute @dnd-academy/core cache key id: compute_core_cache_key run: echo "hash=${{ runner.os }}-core-build-${{ hashFiles('packages/core/**') }}" >> $GITHUB_OUTPUT