diff --git a/.github/workflows/changeset.yml b/.github/workflows/changeset.yml index d8caa89a4..1505ee078 100644 --- a/.github/workflows/changeset.yml +++ b/.github/workflows/changeset.yml @@ -45,6 +45,7 @@ jobs: key: ${{ runner.os }}-turbo-${{ github.sha }} restore-keys: | ${{ runner.os }}-turbo- + save-always: true - name: Build packages run: pnpm ci-build diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index ea5513cd1..45193a2f9 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -46,6 +46,7 @@ jobs: key: ${{ runner.os }}-turbo-${{ github.sha }} restore-keys: | ${{ runner.os }}-turbo- + save-always: true - name: Cache ESLint uses: actions/cache@v4 @@ -54,14 +55,23 @@ jobs: key: ${{ runner.os }}-eslint-${{ github.sha }} restore-keys: | ${{ runner.os }}-eslint- + save-always: true - name: Cache Knip uses: actions/cache@v4 with: - path: node_modules/.cache/knip - key: ${{ runner.os }}-knip-${{ github.sha }} - restore-keys: | - ${{ runner.os }}-knip- + path: node_modules/.cache/knip + key: ${{ runner.os }}-knip-${{ github.sha }} + restore-keys: | + ${{ runner.os }}-knip- + save-always: true + + - name: Cache Jest + uses: actions/cache@v4 + with: + path: packages/**/node_modules/.cache/jest + key: ${{ runner.os }}-jest-${{ hashFiles('packages/**/node_modules/.cache/jest') }} + save-always: true - name: Build packages run: pnpm ci-build