Skip to content

Commit 3701e9d

Browse files
committed
build: avoid running the prebuild script before the build
1 parent bafaca0 commit 3701e9d

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

.github/workflows/CI.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ jobs:
6565
docker: node:18-alpine
6666
docker_cmd:
6767
apk add --no-cache pkgconfig curl tar python3 make gcc g++ cmake
68-
musl-dev && npm i -g pnpm && pnpm install && pnpm run prebuild
68+
musl-dev && npm i -g pnpm && pnpm install && pnpm run build.prebuild
6969
node_version: 18
7070
node_arch: x64
7171
ARCH: x64
@@ -133,7 +133,7 @@ jobs:
133133

134134
- name: Prebuild
135135
if: ${{ !matrix.docker }}
136-
run: pnpm run prebuild
136+
run: pnpm run build.prebuild
137137

138138
- name: Prebuild Docker
139139
if: ${{ matrix.docker }}

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@
8888
"build.js": "run-p build.script build.library",
8989
"build.doc": "typedoc --options ./typedoc.json && minify-all -s docs-raw -d docs --jsCompressor terser",
9090
"deploy.doc": "run-s build.doc && gh-pages --dist \"./docs\"",
91-
"prebuild": "run-s build.js && node ./script/prebuild.mjs",
91+
"build.prebuild": "run-s build.js && node ./script/prebuild.mjs",
9292
"build.native": "node-gyp configure --release && node-gyp configure --release -- -f compile_commands_json && node-gyp build --release",
9393
"build.native.debug": "node-gyp configure --debug && node-gyp configure --debug -- -f compile_commands_json && cross-env CMAKE_BUILD_TYPE=Debug node-gyp build --debug",
9494
"build": "run-s build.js build.native",

0 commit comments

Comments
 (0)