From 53696266fdf659a402f57699c809d6419b11605b Mon Sep 17 00:00:00 2001 From: Gray Date: Fri, 6 Jun 2025 14:35:28 +0800 Subject: [PATCH] build: specify pnpm version in `package.json` and `ci.yml` (#513) Specify pnpm version in both `package.json` and `ci.yml` to avoid build errors during deployment. --------- Closes #512 Co-authored-by: satnaing --- .github/workflows/ci.yml | 2 +- package.json | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 983aa53..77eeea5 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -26,7 +26,7 @@ jobs: - name: "📦 Install pnpm" uses: pnpm/action-setup@v4 with: - version: 10 + version: 10.11.1 - name: Use Node.js ${{ matrix.node-version }} uses: actions/setup-node@v4 diff --git a/package.json b/package.json index 2350daa..1a7b7ea 100644 --- a/package.json +++ b/package.json @@ -2,6 +2,7 @@ "name": "astro-paper", "type": "module", "version": "5.2.0", + "packageManager": "pnpm@10.11.1", "scripts": { "dev": "astro dev", "build": "astro check && astro build && pagefind --site dist && cp -r dist/pagefind public/",