ci: use pnpm/action-setup@v4 so CI reads the pinned pnpm version
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 [email protected].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.
This commit is contained in:
@@ -18,9 +18,8 @@ jobs:
|
|||||||
- name: Checkout
|
- name: Checkout
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
- name: Set up pnpm
|
- name: Set up pnpm
|
||||||
uses: pnpm/action-setup@v2.0.1
|
uses: pnpm/action-setup@v4
|
||||||
with:
|
with:
|
||||||
version: 6
|
|
||||||
# Only install what we need to run the client in-action and tests against it
|
# Only install what we need to run the client in-action and tests against it
|
||||||
# format: `--filter <packagename>...`
|
# format: `--filter <packagename>...`
|
||||||
run_install: |
|
run_install: |
|
||||||
|
|||||||
@@ -11,7 +11,6 @@ on:
|
|||||||
|
|
||||||
env:
|
env:
|
||||||
NODE_VERSION: "20"
|
NODE_VERSION: "20"
|
||||||
PNPM_VERSION: "8"
|
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build-and-deploy-embeds:
|
build-and-deploy-embeds:
|
||||||
@@ -28,9 +27,7 @@ jobs:
|
|||||||
node-version: ${{ env.NODE_VERSION }}
|
node-version: ${{ env.NODE_VERSION }}
|
||||||
|
|
||||||
- name: Setup pnpm
|
- name: Setup pnpm
|
||||||
uses: pnpm/action-setup@v2
|
uses: pnpm/action-setup@v4
|
||||||
with:
|
|
||||||
version: ${{ env.PNPM_VERSION }}
|
|
||||||
|
|
||||||
- name: Get pnpm store directory
|
- name: Get pnpm store directory
|
||||||
shell: bash
|
shell: bash
|
||||||
|
|||||||
@@ -11,7 +11,6 @@ on:
|
|||||||
|
|
||||||
env:
|
env:
|
||||||
NODE_VERSION: "20"
|
NODE_VERSION: "20"
|
||||||
PNPM_VERSION: "8"
|
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build-and-deploy-storybook:
|
build-and-deploy-storybook:
|
||||||
@@ -28,9 +27,7 @@ jobs:
|
|||||||
node-version: ${{ env.NODE_VERSION }}
|
node-version: ${{ env.NODE_VERSION }}
|
||||||
|
|
||||||
- name: Setup pnpm
|
- name: Setup pnpm
|
||||||
uses: pnpm/action-setup@v2
|
uses: pnpm/action-setup@v4
|
||||||
with:
|
|
||||||
version: ${{ env.PNPM_VERSION }}
|
|
||||||
|
|
||||||
- name: Get pnpm store directory
|
- name: Get pnpm store directory
|
||||||
shell: bash
|
shell: bash
|
||||||
|
|||||||
@@ -9,7 +9,6 @@ on:
|
|||||||
|
|
||||||
env:
|
env:
|
||||||
NODE_VERSION: '20'
|
NODE_VERSION: '20'
|
||||||
PNPM_VERSION: '8'
|
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
generate-and-upload-openapi:
|
generate-and-upload-openapi:
|
||||||
@@ -26,9 +25,7 @@ jobs:
|
|||||||
node-version: ${{ env.NODE_VERSION }}
|
node-version: ${{ env.NODE_VERSION }}
|
||||||
|
|
||||||
- name: Setup pnpm
|
- name: Setup pnpm
|
||||||
uses: pnpm/action-setup@v2
|
uses: pnpm/action-setup@v4
|
||||||
with:
|
|
||||||
version: ${{ env.PNPM_VERSION }}
|
|
||||||
|
|
||||||
- name: Get pnpm store directory
|
- name: Get pnpm store directory
|
||||||
shell: bash
|
shell: bash
|
||||||
|
|||||||
Reference in New Issue
Block a user