Browse Source
fix: dumi build preview (#38597)
* fix: dumi build preview
* Update package.json
pull/38603/head
afc163
2 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with
3 additions and
3 deletions
-
.github/workflows/preview-build.yml
-
package.json
|
|
@ -74,6 +74,7 @@ jobs: |
|
|
|
run: npm run site |
|
|
|
env: |
|
|
|
SITE_ENV: development |
|
|
|
NODE_OPTIONS: --max_old_space_size=4096 |
|
|
|
|
|
|
|
- name: upload site artifact |
|
|
|
uses: actions/upload-artifact@v3 |
|
|
|
|
|
@ -81,7 +81,7 @@ |
|
|
|
"rome:format": "rome format --write .", |
|
|
|
"prepublishOnly": "antd-tools run guard", |
|
|
|
"postpublish": "node ./scripts/post-script.js", |
|
|
|
"site": "npm run fix-memory-limit && dumi build && cp .surgeignore _site", |
|
|
|
"site": "dumi build && cp .surgeignore _site", |
|
|
|
"sort": "npx sort-package-json", |
|
|
|
"sort-api": "antd-tools run sort-api-table", |
|
|
|
"start": "dumi dev", |
|
|
@ -96,8 +96,7 @@ |
|
|
|
"version": "node ./scripts/generate-version", |
|
|
|
"install-react-16": "npm i --no-save --legacy-peer-deps react@16 react-dom@16 @testing-library/react@12", |
|
|
|
"install-react-17": "npm i --no-save --legacy-peer-deps react@17 react-dom@17 @testing-library/react@12", |
|
|
|
"install-react-18": "npm i --no-save --legacy-peer-deps react@18 react-dom@18", |
|
|
|
"fix-memory-limit": "cross-env LIMIT=10240 increase-memory-limit" |
|
|
|
"install-react-18": "npm i --no-save --legacy-peer-deps react@18 react-dom@18" |
|
|
|
}, |
|
|
|
"browserslist": [ |
|
|
|
"> 0.5%", |
|
|
|