Swap pnpm to npm
This commit is contained in:
6
.github/workflows/deploy.yml
vendored
6
.github/workflows/deploy.yml
vendored
@@ -15,10 +15,10 @@ jobs:
|
|||||||
- uses: actions/setup-node@v3
|
- uses: actions/setup-node@v3
|
||||||
with:
|
with:
|
||||||
node-version: 18
|
node-version: 18
|
||||||
cache: pnpm
|
cache: npm
|
||||||
- run: pnpm i --frozen-lockfile
|
- run: npm i --frozen-lockfile
|
||||||
- name: Build
|
- name: Build
|
||||||
run: pnpm run build
|
run: npm run build
|
||||||
env:
|
env:
|
||||||
NODE_OPTIONS: "--max_old_space_size=4096"
|
NODE_OPTIONS: "--max_old_space_size=4096"
|
||||||
- uses: easingthemes/ssh-deploy@main
|
- uses: easingthemes/ssh-deploy@main
|
||||||
|
|||||||
@@ -14,10 +14,8 @@
|
|||||||
}
|
}
|
||||||
],
|
],
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"preinstall": "npx only-allow pnpm",
|
|
||||||
"test": "pnpm lint && pnpm build && pnpm preview",
|
|
||||||
"dev": "vitepress dev",
|
"dev": "vitepress dev",
|
||||||
"build": "vitepress build",
|
"build": "node --max_old_space_size=4096 ./node_modules/vitepress/bin/vitepress.js build",
|
||||||
"preview": "vitepress preview",
|
"preview": "vitepress preview",
|
||||||
"lint": "markdownlint **/*.md --disable MD045"
|
"lint": "markdownlint **/*.md --disable MD045"
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user