From f653f9b96183091e7dcb61ba51eb5ce3ff63b9d6 Mon Sep 17 00:00:00 2001 From: fylorn <249551762+fylorn@users.noreply.github.com> Date: Sun, 4 Oct 2026 01:47:59 +0800 Subject: [PATCH] Pin pnpm through packageManager CI installed "pnpm 10" through pnpm/action-setup while a local pnpm 11 refused to build the site. package.json now names pnpm@10.34.6: the action reads it, and a local pnpm switches to that version on its own, so both build with the same pnpm. Co-Authored-By: Claude Opus 5.5 --- .github/workflows/check.yml | 4 ++-- .github/workflows/deploy.yml | 4 ++-- package.json | 3 ++- 3 files changed, 6 insertions(+), 5 deletions(-) diff --git a/.github/workflows/check.yml b/.github/workflows/check.yml index 5e1a2a5..58fa6e8 100644 --- a/.github/workflows/check.yml +++ b/.github/workflows/check.yml @@ -25,10 +25,10 @@ jobs: # The sitemap's and the dates on doc pages come from git history. fetch-depth: 0 + # The pnpm version comes from package.json's packageManager, the same one + # a local `pnpm` switches to - name: Setup pnpm uses: pnpm/action-setup@v4 - with: - version: 10 - name: Setup Node uses: actions/setup-node@v4 diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 22232ce..0d12c3e 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -32,10 +32,10 @@ jobs: # history; a shallow clone would leave them out. fetch-depth: 0 + # The pnpm version comes from package.json's packageManager, the same one + # a local `pnpm` switches to - name: Setup pnpm uses: pnpm/action-setup@v4 - with: - version: 10 - name: Setup Node uses: actions/setup-node@v4 diff --git a/package.json b/package.json index bfb5581..6f9cd71 100644 --- a/package.json +++ b/package.json @@ -42,5 +42,6 @@ "sharp": "^0.34.5", "shiki": "^4.0.2", "typescript": "^5.7.0" - } + }, + "packageManager": "pnpm@10.34.6" }