update github pages workflows/deploy-docs.yml

This commit is contained in:
fisher 2022-04-12 11:41:14 +08:00
parent fbc89035e3
commit f8b03ad0a0
2 changed files with 2 additions and 1 deletions

View File

@ -33,7 +33,7 @@ jobs:
- name: 构建文档
env:
NODE_OPTIONS: --max_old_space_size=4096
run: yarn run docs:build
run: yarn run build-docs
- name: 部署文档
uses: JamesIves/github-pages-deploy-action@v4

View File

@ -9,6 +9,7 @@
"test:app": "cross-env NODE_OPTIONS=--experimental-vm-modules node node_modules/jest/bin/jest.js -- app",
"list:package": "node ./packages/autopublish/index.js list",
"autopublish": "node ./packages/autopublish/index.js",
"build-docs": "vuepress build docs",
"docs:build": "cross-env NODE_OPTIONS=--openssl-legacy-provider vuepress build docs",
"docs:dev": "cross-env NODE_OPTIONS=--openssl-legacy-provider && vuepress dev docs",
"docs:clean-dev": "vuepress dev docs --clean-cache"