chore: use pnpm

This commit is contained in:
Mr.Hope
2023-04-24 21:29:53 +08:00
parent c12ed4fe40
commit 4b1d9f796f
4 changed files with 6391 additions and 9952 deletions

View File

@@ -1,11 +1,9 @@
name: Deploy Docs
on:
push:
branches:
# make sure this is the branch you are using
- 'main'
- "main"
jobs:
deploy-gh-pages:
@@ -15,25 +13,26 @@ jobs:
uses: actions/checkout@v3
with:
fetch-depth: 0
# if your docs needs submodules, uncomment the following line
# submodules: true
- name: Setup pnpm
uses: pnpm/action-setup@v2
with:
run_install: true
- name: Setup Node.js
uses: actions/setup-node@v3
with:
node-version: 16
cache: npm
node-version: 18
cache: pnpm
- name: Install Deps
run: npm install
run: pnpm install
- name: Build Docs
env:
NODE_OPTIONS: --max_old_space_size=8192
run: |-
npm run docs:build
pnpm run docs:build
> dist/.nojekyll
- name: Deploy Docs
@@ -42,4 +41,3 @@ jobs:
# This is the branch where the docs are deployed to
branch: gh-pages
folder: dist

9939
package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@@ -15,7 +15,14 @@
"@vuepress/plugin-google-analytics": "2.0.0-beta.61",
"vue": "^3.2.47",
"vuepress": "2.0.0-beta.61",
"vuepress-plugin-redirect": "2.0.0-beta.202",
"vuepress-theme-hope": "2.0.0-beta.202"
"vuepress-plugin-redirect": "2.0.0-beta.206",
"vuepress-theme-hope": "2.0.0-beta.206"
},
"pnpm": {
"ignoreMissing": [
"@algolia/client-search",
"react",
"react-dom"
]
}
}

6373
pnpm-lock.yaml generated Normal file

File diff suppressed because it is too large Load Diff