Skip to content

Commit ede50df

Browse files
committed
ci: clean the build artifacts before building the tests
1 parent e30b162 commit ede50df

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

.github/workflows/CI.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -124,8 +124,10 @@ jobs:
124124
timeout_minutes: 15
125125
max_attempts: 1
126126
command: |
127+
pnpm run clean
127128
pnpm run test.skip_gc_tests
128129
129130
- name: Tests + GC Tests (Release)
130131
run: |
132+
pnpm run clean
131133
pnpm run test

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,8 @@
7676
],
7777
"scripts": {
7878
"install": "node-gyp-build",
79-
"clean": "shx rm -rf build lib libzmq tmp zmq prebuilds && shx mkdir -p tmp && shx touch tmp/.gitkeep",
79+
"clean": "shx rm -rf ./build ./lib/ ./prebuilds",
80+
"clean.temp": "shx rm -rf ./tmp && shx mkdir -p tmp && shx touch tmp/.gitkeep",
8081
"build.js": "tsc --project tsconfig-build.json && node script/ci/downlevel-dts.js",
8182
"build.doc": "typedoc --out docs --name zeromq.js --excludeProtected --excludePrivate --excludeNotExported --excludeExternals --externalPattern 'src/+(draft|native|compat).ts' --tsconfig tsconfig-build.json --mode file",
8283
"prebuild": "ts-node -P ./tsconfig.json ./script/prebuild.ts",

0 commit comments

Comments
 (0)