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
|
||||
with:
|
||||
node-version: 18
|
||||
cache: pnpm
|
||||
- run: pnpm i --frozen-lockfile
|
||||
cache: npm
|
||||
- run: npm i --frozen-lockfile
|
||||
- name: Build
|
||||
run: pnpm run build
|
||||
run: npm run build
|
||||
env:
|
||||
NODE_OPTIONS: "--max_old_space_size=4096"
|
||||
- uses: easingthemes/ssh-deploy@main
|
||||
|
||||
@@ -14,10 +14,8 @@
|
||||
}
|
||||
],
|
||||
"scripts": {
|
||||
"preinstall": "npx only-allow pnpm",
|
||||
"test": "pnpm lint && pnpm build && pnpm preview",
|
||||
"dev": "vitepress dev",
|
||||
"build": "vitepress build",
|
||||
"build": "node --max_old_space_size=4096 ./node_modules/vitepress/bin/vitepress.js build",
|
||||
"preview": "vitepress preview",
|
||||
"lint": "markdownlint **/*.md --disable MD045"
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user