From 483342100c1277ce034949c2746cf3ee20d76db2 Mon Sep 17 00:00:00 2001 From: Oliver Li Date: Mon, 13 Jul 2026 17:08:12 -0400 Subject: [PATCH] ci: enforce yarn cache immutability to catch stale/missing .yarn/cache entries --- .github/workflows/bump.yaml | 2 +- .github/workflows/ci.yaml | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/bump.yaml b/.github/workflows/bump.yaml index a49d9f837..14a285510 100644 --- a/.github/workflows/bump.yaml +++ b/.github/workflows/bump.yaml @@ -37,7 +37,7 @@ jobs: node-version-file: "package.json" - name: Install dependencies - run: yarn install + run: yarn install --immutable --immutable-cache - name: Bump version run: yarn version:all ${{ inputs.version }} - name: Add files diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 48f9d26b4..0c59410e1 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -40,7 +40,7 @@ jobs: api_key: ${{secrets.DATADOG_API_KEY}} site: datadoghq.com - - run: yarn install + - run: yarn install --immutable --immutable-cache - name: Build all plugins if: steps.cache-build.outputs.cache-hit != 'true' @@ -96,7 +96,7 @@ jobs: api_key: ${{secrets.DATADOG_API_KEY}} site: datadoghq.com - - run: yarn install + - run: yarn install --immutable --immutable-cache - name: Install playwright run: yarn workspace @dd/tests playwright install --with-deps @@ -165,7 +165,7 @@ jobs: 'packages/plugins/**', 'packages/published/**', 'packages/tools/src/**', 'yarn.lock') }} - - run: yarn install + - run: yarn install --immutable --immutable-cache # Pre build the rollup plugin so it can be used in the following step. - name: Build rollup's plugin