diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 1eabcf78c..ca41ea147 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -145,14 +145,20 @@ jobs: with: node-version: ${{ matrix.node-version }} + - name: Load cached dependencies + uses: actions/cache@v4.2.0 + id: cache + with: + path: | + **/node_modules + **/.turbo + key: ${{ runner.os }}-node-${{ matrix.node-version }}-${{ hashFiles('**/package-lock.json') }} + - name: Install dependencies id: install-dependencies + if: steps.cache.outputs.cache-hit != 'true' run: npm install - - name: Try to build the packages - id: build-packages - run: npm run build:pm - - name: Run unit tests id: run-unit-tests run: npm run test:unit