Skip to content

Commit

Permalink
fix: pack zeromq on the main CI
Browse files Browse the repository at this point in the history
  • Loading branch information
aminya committed Oct 26, 2024
1 parent 7304969 commit 6913937
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 9 deletions.
17 changes: 11 additions & 6 deletions .github/workflows/CI.yml
Original file line number Diff line number Diff line change
Expand Up @@ -162,12 +162,17 @@ jobs:
name: build-${{ strategy.job-index }}
overwrite: true

- name: Upload lib
- name: Pack Zeromq
if: matrix.os == 'ubuntu-20.04'
run: |
pnpm pack
- name: Upload Pack
if: matrix.os == 'ubuntu-20.04'
uses: actions/upload-artifact@v4
with:
path: ./lib
name: lib
path: ./*.tgz
name: pack
overwrite: true

- name: Lint
Expand Down Expand Up @@ -228,11 +233,11 @@ jobs:
name: build
path: ./build

- name: Place lib
- name: Place Pack
uses: actions/download-artifact@v4
with:
name: lib
path: ./lib
name: pack
path: ./

- name: Install Node
uses: actions/setup-node@v4
Expand Down
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,7 @@
"lint": "run-p format lint.eslint format",
"lint-test": "run-s lint-test.eslint",
"bench": "node --expose-gc test/bench",
"prepublishOnly": "pnpm run build.js",
"bump": "pnpx npm-check-updates -u -x typescript,eslint,chai && pnpx typesync && pnpm update"
},
"cmake-ts": {
Expand Down
5 changes: 2 additions & 3 deletions script/smoke-test.bash
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,10 @@
set -ev
set -o pipefail

echo "Pack zeromq.js"
echo "Pack zeromq.js if needed"
version=$(npm pkg get version | tr -d '"')
pack_name="zeromq-${version}.tgz"
rm -f "${pack_name}"
npm pack
test -f "${pack_name}" || npm pack

init_smoke_test() {
local pm=$1
Expand Down

0 comments on commit 6913937

Please sign in to comment.