mirror of
https://github.com/wassname/chatGPTBox.git
synced 2026-06-27 19:30:28 +08:00
update build scripts
This commit is contained in:
@@ -16,9 +16,9 @@ jobs:
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- uses: actions/setup-node@v3
|
||||
- uses: actions/setup-node@v4
|
||||
with:
|
||||
node-version: 18
|
||||
node-version: 20
|
||||
- run: npm ci
|
||||
- run: npm run lint
|
||||
- run: npm run build
|
||||
@@ -21,9 +21,9 @@ jobs:
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- uses: actions/setup-node@v3
|
||||
- uses: actions/setup-node@v4
|
||||
with:
|
||||
node-version: 18
|
||||
node-version: 20
|
||||
- run: npm ci
|
||||
- run: npm run build
|
||||
|
||||
|
||||
@@ -40,11 +40,14 @@ jobs:
|
||||
git commit -am "release v${{ env.VERSION }}"
|
||||
git push
|
||||
|
||||
- uses: actions/setup-node@v3
|
||||
- uses: actions/setup-node@v4
|
||||
with:
|
||||
node-version: 18
|
||||
node-version: 20
|
||||
- run: npm ci
|
||||
|
||||
- uses: actions/setup-python@v4
|
||||
with:
|
||||
python-version: '3.10' # for appdmg
|
||||
- uses: maxim-lobanov/setup-xcode@v1
|
||||
with:
|
||||
xcode-version: 14.2
|
||||
|
||||
@@ -10,8 +10,8 @@ jobs:
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- uses: actions/setup-node@v3
|
||||
- uses: actions/setup-node@v4
|
||||
with:
|
||||
node-version: 16
|
||||
node-version: 20
|
||||
- run: npm ci
|
||||
- run: npm run verify
|
||||
|
||||
@@ -298,18 +298,18 @@ function generateWebpackCallback(finishOutputFunc) {
|
||||
async function build() {
|
||||
await deleteOldDir()
|
||||
if (isProduction && !isAnalyzing) {
|
||||
await runWebpack(
|
||||
true,
|
||||
false,
|
||||
generateWebpackCallback(() => finishOutput('-without-katex')),
|
||||
)
|
||||
await new Promise((r) => setTimeout(r, 5000))
|
||||
// await runWebpack(
|
||||
// true,
|
||||
// false,
|
||||
// generateWebpackCallback(() => finishOutput('-without-katex')),
|
||||
// )
|
||||
// await new Promise((r) => setTimeout(r, 5000))
|
||||
await runWebpack(
|
||||
true,
|
||||
true,
|
||||
generateWebpackCallback(() => finishOutput('-without-katex-and-tiktoken')),
|
||||
)
|
||||
await new Promise((r) => setTimeout(r, 5000))
|
||||
await new Promise((r) => setTimeout(r, 10000))
|
||||
}
|
||||
await runWebpack(
|
||||
false,
|
||||
|
||||
Reference in New Issue
Block a user