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 <satnaingdev@gmail.com>
This commit is contained in:
Gray
2025-06-06 14:35:28 +08:00
committed by GitHub
parent bd948604be
commit 53696266fd
2 changed files with 2 additions and 1 deletions
+1 -1
View File
@@ -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
+1
View File
@@ -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/",