File tree Expand file tree Collapse file tree 4 files changed +9
-6
lines changed Expand file tree Collapse file tree 4 files changed +9
-6
lines changed Original file line number Diff line number Diff line change 22
22
release-npm :
23
23
name : Release NPM packages
24
24
runs-on : ubuntu-24.04
25
- timeout-minutes : 30
25
+ timeout-minutes : 60
26
26
if : github.event_name != 'workflow_dispatch'
27
27
steps :
28
28
- name : Check out repo
Original file line number Diff line number Diff line change 29
29
"lint" : " eslint \" src/**/*.ts\" \" tests/**/*.*js\" " ,
30
30
"test" : " yarn run test:unit && yarn run test:functional" ,
31
31
"test:unit" : " mocha tests/unit/**/*.spec.mjs && karma start ./tests/karma/karma.conf.cjs --single-run" ,
32
- "test:functional" : " mocha tests/functional/**/*.spec.mjs --exit --timeout 90000 && karma start ./tests/karma/karma.functional.conf.cjs --single-run" ,
33
- "prepack" : " yarn build"
32
+ "test:functional" : " mocha tests/functional/**/*.spec.mjs --exit --timeout 90000 && karma start ./tests/karma/karma.functional.conf.cjs --single-run"
34
33
},
35
34
"devDependencies" : {
36
35
"@typescript-eslint/eslint-plugin" : " ^5.55.0" ,
Original file line number Diff line number Diff line change 24
24
"node" : " >=18.18"
25
25
},
26
26
"scripts" : {
27
- "build:dev " : " ./scripts/build.sh && node ./scripts/bundle.cjs" ,
27
+ "build" : " ./scripts/build.sh && node ./scripts/bundle.cjs" ,
28
28
"build:release" : " ./scripts/build-optimized.sh && node ./scripts/bundle.cjs" ,
29
- "build" : " yarn build:dev" ,
30
- "prepack" : " yarn build:release" ,
31
29
"test" : " yarn run test:unit && yarn run test:functional" ,
32
30
"test:unit" : " mocha tests/unit/**/*.spec.mjs && karma start ./tests/karma/karma.conf.cjs --single-run" ,
33
31
"test:functional" : " mocha tests/functional/**/*.spec.mjs && karma start ./tests/karma/karma.functional.conf.cjs --single-run" ,
Original file line number Diff line number Diff line change @@ -10,6 +10,12 @@ set -euo pipefail
10
10
# Get script directory
11
11
SCRIPT_DIR=" $( cd " $( dirname " ${BASH_SOURCE[0]} " ) " && pwd) "
12
12
13
+ # If building with release profile, use the optimized build script
14
+ if [ " ${CARGO_BUILD_PROFILE:- } " = " release" ]; then
15
+ # exec replaces the current shell process; the script will not continue after this.
16
+ exec " $SCRIPT_DIR /build-optimized.sh"
17
+ fi
18
+
13
19
# Determine optimization level based on environment
14
20
OPT_LEVEL=" full"
15
21
if [ " ${CARGO_BUILD_PROFILE:- } " = " dev" ] || [ " ${CI:- } " != " true" ]; then
You can’t perform that action at this time.
0 commit comments