diff --git a/.github/workflows/coverage-nightly.yml b/.github/workflows/coverage-nightly.yml index 17a1421f08..71eaefabf3 100644 --- a/.github/workflows/coverage-nightly.yml +++ b/.github/workflows/coverage-nightly.yml @@ -28,8 +28,8 @@ jobs: with: node-version: '22' - - name: Enable Corepack - run: corepack enable + - name: Setup pnpm + uses: ./.github/actions/setup-pnpm - name: Get pnpm store directory shell: bash diff --git a/.github/workflows/cut-rc.yml b/.github/workflows/cut-rc.yml index 3e30eb7fe0..dca1b20c0e 100644 --- a/.github/workflows/cut-rc.yml +++ b/.github/workflows/cut-rc.yml @@ -339,11 +339,8 @@ jobs: # hotcrm@v1.2.0, whose manifest pins engines.node >=22. node-version: '22' - - name: Enable Corepack - run: corepack enable - - - name: Verify pnpm version - run: pnpm --version + - name: Setup pnpm + uses: ./.github/actions/setup-pnpm - name: Get pnpm store directory shell: bash diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index 1daf4e2f80..984ae80723 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -56,8 +56,8 @@ jobs: with: node-version: '22' - - name: Enable Corepack - run: corepack enable + - name: Setup pnpm + uses: ./.github/actions/setup-pnpm - name: Get pnpm store directory shell: bash @@ -2496,11 +2496,8 @@ jobs: with: node-version: '22' - - name: Enable Corepack - run: corepack enable - - - name: Verify pnpm version - run: pnpm --version + - name: Setup pnpm + uses: ./.github/actions/setup-pnpm - name: Get pnpm store directory shell: bash @@ -3072,11 +3069,8 @@ jobs: with: node-version: '22' - - name: Enable Corepack - run: corepack enable - - - name: Verify pnpm version - run: pnpm --version + - name: Setup pnpm + uses: ./.github/actions/setup-pnpm - name: Get pnpm store directory shell: bash @@ -3249,11 +3243,8 @@ jobs: with: node-version: '22' - - name: Enable Corepack - run: corepack enable - - - name: Verify pnpm version - run: pnpm --version + - name: Setup pnpm + uses: ./.github/actions/setup-pnpm - name: Get pnpm store directory shell: bash @@ -3443,11 +3434,8 @@ jobs: with: node-version: '22' - - name: Enable Corepack - run: corepack enable - - - name: Verify pnpm version - run: pnpm --version + - name: Setup pnpm + uses: ./.github/actions/setup-pnpm - name: Get pnpm store directory shell: bash diff --git a/.github/workflows/pr-automation.yml b/.github/workflows/pr-automation.yml index 377c3c16f4..8bac9e88c3 100644 --- a/.github/workflows/pr-automation.yml +++ b/.github/workflows/pr-automation.yml @@ -423,11 +423,11 @@ jobs: with: node-version: '22' - - name: Enable Corepack + - name: Setup pnpm if: >- steps.labels.outputs.skip != 'true' && steps.diffbase.outputs.base_error == '' - run: corepack enable + uses: ./.github/actions/setup-pnpm - name: Install dependencies if: >- diff --git a/.github/workflows/publish-smoke.yml b/.github/workflows/publish-smoke.yml index e90b547346..4b1fb35302 100644 --- a/.github/workflows/publish-smoke.yml +++ b/.github/workflows/publish-smoke.yml @@ -191,8 +191,8 @@ jobs: with: node-version: '22' - - name: Enable Corepack - run: corepack enable + - name: Setup pnpm + uses: ./.github/actions/setup-pnpm - name: Get pnpm store directory shell: bash diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index f4d12d808d..388cb68e83 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -274,11 +274,8 @@ jobs: with: node-version: '22' - - name: Enable Corepack - run: corepack enable - - - name: Verify pnpm version - run: pnpm --version + - name: Setup pnpm + uses: ./.github/actions/setup-pnpm - name: Get pnpm store directory shell: bash @@ -507,9 +504,9 @@ jobs: # Everything below is skipped on the overwhelmingly common path (nothing to # repair), which is why the install is here rather than at the top of the job. - - name: Enable Corepack + - name: Setup pnpm if: steps.audit.outputs.releases-missing == 'true' - run: corepack enable + uses: ./.github/actions/setup-pnpm - name: Install dependencies if: steps.audit.outputs.releases-missing == 'true' @@ -670,11 +667,8 @@ jobs: echo " see the run's deployment history for the reviewer and timestamp" } >> "$GITHUB_STEP_SUMMARY" - - name: Enable Corepack - run: corepack enable - - - name: Verify pnpm version - run: pnpm --version + - name: Setup pnpm + uses: ./.github/actions/setup-pnpm - name: Get pnpm store directory shell: bash diff --git a/.github/workflows/rerun-safety-nightly.yml b/.github/workflows/rerun-safety-nightly.yml index 94bb917d07..5ff48d2837 100644 --- a/.github/workflows/rerun-safety-nightly.yml +++ b/.github/workflows/rerun-safety-nightly.yml @@ -54,8 +54,8 @@ jobs: with: node-version: '22' - - name: Enable Corepack - run: corepack enable + - name: Setup pnpm + uses: ./.github/actions/setup-pnpm - name: Get pnpm store directory shell: bash diff --git a/.github/workflows/scaffold-e2e.yml b/.github/workflows/scaffold-e2e.yml index cad80c886d..1097bade31 100644 --- a/.github/workflows/scaffold-e2e.yml +++ b/.github/workflows/scaffold-e2e.yml @@ -52,8 +52,8 @@ jobs: with: node-version: '22' - - name: Enable Corepack - run: corepack enable + - name: Setup pnpm + uses: ./.github/actions/setup-pnpm - name: Get pnpm store directory shell: bash diff --git a/.github/workflows/spec-liveness-check.yml b/.github/workflows/spec-liveness-check.yml index 5c7a5f8b2d..a8a2251c8e 100644 --- a/.github/workflows/spec-liveness-check.yml +++ b/.github/workflows/spec-liveness-check.yml @@ -45,8 +45,8 @@ jobs: with: node-version: '22' - - name: Enable Corepack - run: corepack enable + - name: Setup pnpm + uses: ./.github/actions/setup-pnpm - name: Install dependencies run: pnpm install --frozen-lockfile diff --git a/.github/workflows/validate-deps.yml b/.github/workflows/validate-deps.yml index 914cb4aff7..55116f1d4b 100644 --- a/.github/workflows/validate-deps.yml +++ b/.github/workflows/validate-deps.yml @@ -39,11 +39,8 @@ jobs: with: node-version: '22' - - name: Enable Corepack - run: corepack enable - - - name: Verify pnpm version - run: pnpm --version + - name: Setup pnpm + uses: ./.github/actions/setup-pnpm - name: Get pnpm store directory shell: bash