From 0f5f7ec22a48a21c9c1266fd3bcfdaa3abe4ee91 Mon Sep 17 00:00:00 2001 From: Peter Steinberger Date: Sun, 25 Jan 2026 12:34:12 +0000 Subject: [PATCH] ci: stabilize pnpm setup --- .github/workflows/ci.yml | 52 ++++++++++++++++------------- .github/workflows/install-smoke.yml | 7 ++-- 2 files changed, 31 insertions(+), 28 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index be0d8926f..91090e297 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -32,20 +32,21 @@ jobs: node-version: 22.x check-latest: true + - name: Setup pnpm + uses: pnpm/action-setup@v4 + with: + version: 10.23.0 + run_install: false + - name: Runtime versions run: | node -v npm -v + pnpm -v - name: Capture node path run: echo "NODE_BIN=$(dirname \"$(node -p \"process.execPath\")\")" >> "$GITHUB_ENV" - - name: Enable corepack and pin pnpm - run: | - corepack enable - corepack prepare pnpm@10.23.0 --activate - pnpm -v - - name: Install dependencies (frozen) env: CI: true @@ -108,6 +109,12 @@ jobs: node-version: 22.x check-latest: true + - name: Setup pnpm + uses: pnpm/action-setup@v4 + with: + version: 10.23.0 + run_install: false + - name: Setup Bun uses: oven-sh/setup-bun@v2 with: @@ -118,16 +125,11 @@ jobs: node -v npm -v bun -v + pnpm -v - name: Capture node path run: echo "NODE_BIN=$(dirname \"$(node -p \"process.execPath\")\")" >> "$GITHUB_ENV" - - name: Enable corepack and pin pnpm - run: | - corepack enable - corepack prepare pnpm@10.23.0 --activate - pnpm -v - - name: Install dependencies env: CI: true @@ -212,6 +214,12 @@ jobs: node-version: 22.x check-latest: true + - name: Setup pnpm + uses: pnpm/action-setup@v4 + with: + version: 10.23.0 + run_install: false + - name: Setup Bun uses: oven-sh/setup-bun@v2 with: @@ -222,16 +230,11 @@ jobs: node -v npm -v bun -v + pnpm -v - name: Capture node path run: echo "NODE_BIN=$(dirname \"$(node -p \"process.execPath\")\")" >> "$GITHUB_ENV" - - name: Enable corepack and pin pnpm - run: | - corepack enable - corepack prepare pnpm@10.23.0 --activate - pnpm -v - - name: Install dependencies env: CI: true @@ -279,20 +282,21 @@ jobs: node-version: 22.x check-latest: true + - name: Setup pnpm + uses: pnpm/action-setup@v4 + with: + version: 10.23.0 + run_install: false + - name: Runtime versions run: | node -v npm -v + pnpm -v - name: Capture node path run: echo "NODE_BIN=$(dirname \"$(node -p \"process.execPath\")\")" >> "$GITHUB_ENV" - - name: Enable corepack and pin pnpm - run: | - corepack enable - corepack prepare pnpm@10.23.0 --activate - pnpm -v - - name: Install dependencies env: CI: true diff --git a/.github/workflows/install-smoke.yml b/.github/workflows/install-smoke.yml index 84d1b7f32..b380b1a9b 100644 --- a/.github/workflows/install-smoke.yml +++ b/.github/workflows/install-smoke.yml @@ -14,11 +14,10 @@ jobs: uses: actions/checkout@v4 - name: Setup pnpm - uses: pnpm/action-setup@v3 + uses: pnpm/action-setup@v4 with: - version: 10 - - name: Enable Corepack - run: corepack enable + version: 10.23.0 + run_install: false - name: Install pnpm deps (minimal) run: pnpm install --ignore-scripts --frozen-lockfile