File tree Expand file tree Collapse file tree 4 files changed +39
-24
lines changed Expand file tree Collapse file tree 4 files changed +39
-24
lines changed Original file line number Diff line number Diff line change @@ -162,20 +162,6 @@ jobs:
162
162
name: build-${{ strategy.job-index }}
163
163
overwrite: true
164
164
165
- - name: Pack Zeromq
166
- if: matrix.os == 'ubuntu-20.04'
167
- run: |
168
- pnpm run build.js
169
- pnpm pack
170
-
171
- - name: Upload Pack
172
- if: matrix.os == 'ubuntu-20.04'
173
- uses: actions/upload-artifact@v4
174
- with:
175
- path: ./*.tgz
176
- name: pack
177
- overwrite: true
178
-
179
165
- name: Lint
180
166
if: "${{ contains(matrix.os, 'ubuntu') && !matrix.docker }}"
181
167
run: pnpm run lint-test
@@ -202,7 +188,7 @@ jobs:
202
188
xvfb-run --auto-servernum pnpm run test.electron.main
203
189
continue-on-error: true
204
190
205
- MergeBuild :
191
+ Package :
206
192
runs-on: ubuntu-latest
207
193
needs: Build
208
194
steps:
@@ -213,9 +199,40 @@ jobs:
213
199
pattern: build-*
214
200
delete-merged: true
215
201
202
+ - run: |
203
+ ls -R
204
+
205
+ - uses: actions/checkout@v4
206
+
207
+ - name: Place build
208
+ uses: actions/download-artifact@v4
209
+ with:
210
+ name: build
211
+ path: ./build
212
+
213
+ - name: Install Node
214
+ uses: actions/setup-node@v4
215
+ with:
216
+ node-version-file: "./.nvmrc"
217
+
218
+ - name: Install Pnpm
219
+ uses: pnpm/action-setup@v4
220
+
221
+ - name: Pack Zeromq
222
+ run: |
223
+ pnpm install
224
+ pnpm pack
225
+
226
+ - name: Upload Pack
227
+ uses: actions/upload-artifact@v4
228
+ with:
229
+ path: ./*.tgz
230
+ name: pack
231
+ overwrite: true
232
+
216
233
SmokeTest:
217
234
runs-on: ${{ matrix.os }}
218
- needs: MergeBuild
235
+ needs: Package
219
236
strategy:
220
237
fail-fast: false
221
238
matrix:
@@ -228,13 +245,7 @@ jobs:
228
245
- 10
229
246
- 22
230
247
steps:
231
- - name: Place build
232
- uses: actions/download-artifact@v4
233
- with:
234
- name: build
235
- path: ./build
236
-
237
- - name: Place Pack
248
+ - name: Download Pack
238
249
uses: actions/download-artifact@v4
239
250
with:
240
251
name: pack
Original file line number Diff line number Diff line change
1
+ 22.10.0
Original file line number Diff line number Diff line change 112
112
"lint": "run-p format lint.eslint format",
113
113
"lint-test": "run-s lint-test.eslint",
114
114
"bench": "node --expose-gc test/bench",
115
+ "prepublishOnly": "pnpm run build.js",
115
116
"bump": "pnpx npm-check-updates -u -x typescript,eslint,chai && pnpx typesync && pnpm update"
116
117
},
117
118
"cmake-ts": {
Original file line number Diff line number Diff line change 3
3
set -o pipefail
4
4
5
5
echo "Pack zeromq.js if needed"
6
- version=$(npm pkg get version | tr -d '" ')
6
+ version=$(node -e 'console.log(require("./package.json").version) ')
7
7
pack_name="zeromq-${version}.tgz"
8
8
test -f "${pack_name}" || npm pack
9
9
@@ -26,6 +26,8 @@ for pm in "${package_managers[@]}"; do
26
26
echo "Install with ${pm}"
27
27
${pm} install
28
28
29
+ ls -R ./node_modules/zeromq
30
+
29
31
echo "Require zeromq"
30
32
node -e "console.log(require('zeromq'))"
31
33
You can’t perform that action at this time.
0 commit comments