File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 2222 release-npm :
2323 name : Release NPM packages
2424 runs-on : ubuntu-24.04
25- timeout-minutes : 30
25+ timeout-minutes : 60
2626 if : github.event_name != 'workflow_dispatch'
2727 steps :
2828 - name : Check out repo
Original file line number Diff line number Diff line change 2929 "lint" : " eslint \" src/**/*.ts\" \" tests/**/*.*js\" " ,
3030 "test" : " yarn run test:unit && yarn run test:functional" ,
3131 "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"
3433 },
3534 "devDependencies" : {
3635 "@typescript-eslint/eslint-plugin" : " ^5.55.0" ,
Original file line number Diff line number Diff line change 2424 "node" : " >=18.18"
2525 },
2626 "scripts" : {
27- "build:dev " : " ./scripts/build.sh && node ./scripts/bundle.cjs" ,
27+ "build" : " ./scripts/build.sh && node ./scripts/bundle.cjs" ,
2828 "build:release" : " ./scripts/build-optimized.sh && node ./scripts/bundle.cjs" ,
29- "build" : " yarn build:dev" ,
30- "prepack" : " yarn build:release" ,
3129 "test" : " yarn run test:unit && yarn run test:functional" ,
3230 "test:unit" : " mocha tests/unit/**/*.spec.mjs && karma start ./tests/karma/karma.conf.cjs --single-run" ,
3331 "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
1010# Get script directory
1111SCRIPT_DIR=" $( cd " $( dirname " ${BASH_SOURCE[0]} " ) " && pwd) "
1212
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+
1319# Determine optimization level based on environment
1420OPT_LEVEL=" full"
1521if [ " ${CARGO_BUILD_PROFILE:- } " = " dev" ] || [ " ${CI:- } " != " true" ]; then
You can’t perform that action at this time.
0 commit comments