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