Skip to content

Commit 7304969

Browse files
committed
ci: download the lib from artifacts
1 parent de453d8 commit 7304969

File tree

2 files changed

+16
-4
lines changed

2 files changed

+16
-4
lines changed

.github/workflows/CI.yml

Lines changed: 16 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -155,13 +155,21 @@ jobs:
155155
docker tag ${{ matrix.docker }} builder
156156
docker run --volume ${{ github.workspace }}:/app --workdir /app --privileged builder sh -c "${{ matrix.docker_cmd }}"
157157
158-
- name: Upload artifacts
158+
- name: Upload build
159159
uses: actions/upload-artifact@v4
160160
with:
161161
path: ./build
162162
name: build-${{ strategy.job-index }}
163163
overwrite: true
164164

165+
- name: Upload lib
166+
if: matrix.os == 'ubuntu-20.04'
167+
uses: actions/upload-artifact@v4
168+
with:
169+
path: ./lib
170+
name: lib
171+
overwrite: true
172+
165173
- name: Lint
166174
if: "${{ contains(matrix.os, 'ubuntu') && !matrix.docker }}"
167175
run: pnpm run lint-test
@@ -214,12 +222,18 @@ jobs:
214222
- 10
215223
- 22
216224
steps:
217-
- name: Place Builds
225+
- name: Place build
218226
uses: actions/download-artifact@v4
219227
with:
220228
name: build
221229
path: ./build
222230

231+
- name: Place lib
232+
uses: actions/download-artifact@v4
233+
with:
234+
name: lib
235+
path: ./lib
236+
223237
- name: Install Node
224238
uses: actions/setup-node@v4
225239
with:

package.json

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,6 @@
8686
],
8787
"scripts": {
8888
"install": "node ./script/install.js",
89-
"prepare": "pnpm run build.js",
9089
"clean": "shx rm -rf ./build ./prebuilds && run-p clean.lib clean.temp",
9190
"clean.lib": "shx rm -rf ./lib/",
9291
"clean.release": "shx rm -rf ./build/Release",
@@ -113,7 +112,6 @@
113112
"lint": "run-p format lint.eslint format",
114113
"lint-test": "run-s lint-test.eslint",
115114
"bench": "node --expose-gc test/bench",
116-
"prepublishOnly": "pnpm run build.js",
117115
"bump": "pnpx npm-check-updates -u -x typescript,eslint,chai && pnpx typesync && pnpm update"
118116
},
119117
"cmake-ts": {

0 commit comments

Comments
 (0)