Skip to content

Commit da53d37

Browse files
committed
update build scripts
1 parent 3d08919 commit da53d37

File tree

5 files changed

+18
-15
lines changed

5 files changed

+18
-15
lines changed

.github/workflows/pr-tests.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,9 @@ jobs:
1616

1717
steps:
1818
- uses: actions/checkout@v4
19-
- uses: actions/setup-node@v3
19+
- uses: actions/setup-node@v4
2020
with:
21-
node-version: 18
21+
node-version: 20
2222
- run: npm ci
2323
- run: npm run lint
2424
- run: npm run build

.github/workflows/pre-release-build.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ jobs:
2323
- uses: actions/checkout@v4
2424
- uses: actions/setup-node@v3
2525
with:
26-
node-version: 18
26+
node-version: 20
2727
- run: npm ci
2828
- run: npm run build
2929

@@ -47,7 +47,7 @@ jobs:
4747
name: Chromium_Build_WithoutKatex_${{ steps.current-time.outputs.formattedTime }}
4848
path: build/chromium-without-katex-and-tiktoken/*
4949

50-
- uses: actions/upload-artifact@v3
50+
- uses: actions/upload-artifact@v4
5151
with:
5252
name: Firefox_Build_WithoutKatex_${{ steps.current-time.outputs.formattedTime }}
5353
path: build/firefox-without-katex-and-tiktoken/*

.github/workflows/tagged-release.yml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,11 +40,14 @@ jobs:
4040
git commit -am "release v${{ env.VERSION }}"
4141
git push
4242
43-
- uses: actions/setup-node@v3
43+
- uses: actions/setup-node@v4
4444
with:
45-
node-version: 18
45+
node-version: 20
4646
- run: npm ci
4747

48+
- uses: actions/setup-python@v4
49+
with:
50+
python-version: '3.10' # for appdmg
4851
- uses: maxim-lobanov/setup-xcode@v1
4952
with:
5053
xcode-version: 14.2

.github/workflows/verify-configs.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@ jobs:
1010

1111
steps:
1212
- uses: actions/checkout@v4
13-
- uses: actions/setup-node@v3
13+
- uses: actions/setup-node@v4
1414
with:
15-
node-version: 16
15+
node-version: 20
1616
- run: npm ci
1717
- run: npm run verify

build.mjs

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -298,18 +298,18 @@ function generateWebpackCallback(finishOutputFunc) {
298298
async function build() {
299299
await deleteOldDir()
300300
if (isProduction && !isAnalyzing) {
301-
await runWebpack(
302-
true,
303-
false,
304-
generateWebpackCallback(() => finishOutput('-without-katex')),
305-
)
306-
await new Promise((r) => setTimeout(r, 5000))
301+
// await runWebpack(
302+
// true,
303+
// false,
304+
// generateWebpackCallback(() => finishOutput('-without-katex')),
305+
// )
306+
// await new Promise((r) => setTimeout(r, 5000))
307307
await runWebpack(
308308
true,
309309
true,
310310
generateWebpackCallback(() => finishOutput('-without-katex-and-tiktoken')),
311311
)
312-
await new Promise((r) => setTimeout(r, 5000))
312+
await new Promise((r) => setTimeout(r, 10000))
313313
}
314314
await runWebpack(
315315
false,

0 commit comments

Comments
 (0)