mirror of
https://jihulab.com/DGP-Studio/Snap.Hutao.Docs.git
synced 2025-11-19 21:16:31 +08:00
chore: use pnpm
This commit is contained in:
20
.github/workflows/deploy-docs.yml
vendored
20
.github/workflows/deploy-docs.yml
vendored
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user