From 2f1b6376ffcd5223a5f28eb8a332444b94d98163 Mon Sep 17 00:00:00 2001 From: Rotimi Best Date: Sun, 7 Jun 2026 19:05:15 +0100 Subject: [PATCH] ci: use pnpm/action-setup@v4 so CI reads the pinned pnpm version MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The openapi/storybook/embeds workflows pinned pnpm 8 and cypress pinned pnpm 6 via action-setup@v2. The repo's lockfile is lockfileVersion 9.0 (written by the pinned packageManager pnpm@10.19.0), which pnpm 8/6 cannot read — it ignored the lockfile and --frozen-lockfile failed with ERR_PNPM_LOCKFILE_CONFIG_MISMATCH. Drop the explicit version and let action-setup@v4 resolve pnpm from the packageManager field, matching the already-working publish-mcp / publish-course-app workflows. --- .github/workflows/cypress.yml | 3 +-- .github/workflows/deploy-embeds.yml | 5 +---- .github/workflows/deploy-storybook.yml | 5 +---- .github/workflows/upload-openapi-spec.yml | 5 +---- 4 files changed, 4 insertions(+), 14 deletions(-) diff --git a/.github/workflows/cypress.yml b/.github/workflows/cypress.yml index 8b9a8b2f..3d84f732 100644 --- a/.github/workflows/cypress.yml +++ b/.github/workflows/cypress.yml @@ -18,9 +18,8 @@ jobs: - name: Checkout uses: actions/checkout@v4 - name: Set up pnpm - uses: pnpm/action-setup@v2.0.1 + uses: pnpm/action-setup@v4 with: - version: 6 # Only install what we need to run the client in-action and tests against it # format: `--filter ...` run_install: | diff --git a/.github/workflows/deploy-embeds.yml b/.github/workflows/deploy-embeds.yml index 01b62dd4..78193262 100644 --- a/.github/workflows/deploy-embeds.yml +++ b/.github/workflows/deploy-embeds.yml @@ -11,7 +11,6 @@ on: env: NODE_VERSION: "20" - PNPM_VERSION: "8" jobs: build-and-deploy-embeds: @@ -28,9 +27,7 @@ jobs: node-version: ${{ env.NODE_VERSION }} - name: Setup pnpm - uses: pnpm/action-setup@v2 - with: - version: ${{ env.PNPM_VERSION }} + uses: pnpm/action-setup@v4 - name: Get pnpm store directory shell: bash diff --git a/.github/workflows/deploy-storybook.yml b/.github/workflows/deploy-storybook.yml index 700dc420..7a9cc216 100644 --- a/.github/workflows/deploy-storybook.yml +++ b/.github/workflows/deploy-storybook.yml @@ -11,7 +11,6 @@ on: env: NODE_VERSION: "20" - PNPM_VERSION: "8" jobs: build-and-deploy-storybook: @@ -28,9 +27,7 @@ jobs: node-version: ${{ env.NODE_VERSION }} - name: Setup pnpm - uses: pnpm/action-setup@v2 - with: - version: ${{ env.PNPM_VERSION }} + uses: pnpm/action-setup@v4 - name: Get pnpm store directory shell: bash diff --git a/.github/workflows/upload-openapi-spec.yml b/.github/workflows/upload-openapi-spec.yml index 623e9057..11af2595 100644 --- a/.github/workflows/upload-openapi-spec.yml +++ b/.github/workflows/upload-openapi-spec.yml @@ -9,7 +9,6 @@ on: env: NODE_VERSION: '20' - PNPM_VERSION: '8' jobs: generate-and-upload-openapi: @@ -26,9 +25,7 @@ jobs: node-version: ${{ env.NODE_VERSION }} - name: Setup pnpm - uses: pnpm/action-setup@v2 - with: - version: ${{ env.PNPM_VERSION }} + uses: pnpm/action-setup@v4 - name: Get pnpm store directory shell: bash