mirror of
https://github.com/ChenQihan666/MyBlog-Next.git
synced 2026-08-14 11:29:33 +08:00
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:
@@ -26,7 +26,7 @@ jobs:
|
|||||||
- name: "📦 Install pnpm"
|
- name: "📦 Install pnpm"
|
||||||
uses: pnpm/action-setup@v4
|
uses: pnpm/action-setup@v4
|
||||||
with:
|
with:
|
||||||
version: 10
|
version: 10.11.1
|
||||||
|
|
||||||
- name: Use Node.js ${{ matrix.node-version }}
|
- name: Use Node.js ${{ matrix.node-version }}
|
||||||
uses: actions/setup-node@v4
|
uses: actions/setup-node@v4
|
||||||
|
|||||||
@@ -2,6 +2,7 @@
|
|||||||
"name": "astro-paper",
|
"name": "astro-paper",
|
||||||
"type": "module",
|
"type": "module",
|
||||||
"version": "5.2.0",
|
"version": "5.2.0",
|
||||||
|
"packageManager": "pnpm@10.11.1",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"dev": "astro dev",
|
"dev": "astro dev",
|
||||||
"build": "astro check && astro build && pagefind --site dist && cp -r dist/pagefind public/",
|
"build": "astro check && astro build && pagefind --site dist && cp -r dist/pagefind public/",
|
||||||
|
|||||||
Reference in New Issue
Block a user