Skip to content

Commit 0dbbcf2

Browse files
committed
chore: test prebuild as node-pre-gyp is no longer working
1 parent e0eb378 commit 0dbbcf2

4 files changed

Lines changed: 1937 additions & 524 deletions

File tree

.github/workflows/builds.yml

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -29,11 +29,11 @@ jobs:
2929
npm_config_build_from_source: true
3030
- run: pnpm tsd
3131
- run: pnpm test
32-
- run: pnpm package
32+
- run: pnpm prebuild
3333
- uses: actions/upload-artifact@v3
3434
with:
3535
name: ${{ matrix.os }}-${{ matrix.node }}-binary
36-
path: 'build/**/*.tar.gz'
36+
path: 'prebuilds/**/*.tar.gz'
3737
alpine:
3838
runs-on: ubuntu-20.04
3939
strategy:
@@ -51,13 +51,12 @@ jobs:
5151
env:
5252
npm_config_build_from_source: true
5353
- run: pnpm tsd
54-
- run: pnpm build
5554
- run: pnpm test
56-
- run: pnpm package
55+
- run: pnpm prebuild
5756
- uses: actions/upload-artifact@v3
5857
with:
5958
name: alpine-${{ matrix.node }}-binary
60-
path: 'build/**/*.tar.gz'
59+
path: 'prebuilds/**/*.tar.gz'
6160
deploy:
6261
runs-on: ubuntu-20.04
6362
needs: [alpine, build]
@@ -77,4 +76,4 @@ jobs:
7776
token: ${{ secrets.GITHUB_TOKEN }}
7877
tag: ${{ steps.vars.outputs.tag }}
7978
files: |
80-
./build/*/stage/marudor/libxmljs2/releases/download/*/*
79+
./prebuilds/**/*.tar.gz

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,3 +6,4 @@ npm-debug.log
66
.token
77
.vscode
88
.idea
9+
prebuilds/

package.json

Lines changed: 13 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -14,13 +14,13 @@
1414
"package_name": "{node_abi}-{platform}-{arch}-{libc}.tar.gz"
1515
},
1616
"description": "libxml bindings for v8 javascript engine",
17-
"version": "0.33.0",
17+
"version": "0.34.0",
1818
"scripts": {
19-
"build": "node-pre-gyp install --build-from-source",
20-
"install": "node-pre-gyp install --fallback-to-build --loglevel http",
19+
"build": "node-gyp rebuild",
20+
"prebuild": "prebuild",
21+
"install": "prebuild-install || node-gyp rebuild",
2122
"test": "node --expose_gc ./node_modules/jest/bin/jest.js",
22-
"tsd": "tsd",
23-
"package": "node-pre-gyp package 2>&1"
23+
"tsd": "tsd"
2424
},
2525
"repository": {
2626
"type": "git",
@@ -44,16 +44,18 @@
4444
"Makefile"
4545
],
4646
"dependencies": {
47-
"@mapbox/node-pre-gyp": "^1.0.11",
4847
"bindings": "~1.5.0",
49-
"nan": "~2.18.0"
48+
"nan": "~2.19.0",
49+
"node-gyp": "^10.1.0",
50+
"prebuild-install": "^7.1.2"
5051
},
5152
"devDependencies": {
52-
"@types/node": "^20.8.10",
53+
"@types/node": "^20.12.8",
5354
"jest": "^29.7.0",
5455
"jest-watch-typeahead": "^2.2.2",
55-
"prettier": "^3.0.3",
56-
"tsd": "^0.29.0",
57-
"typescript": "^5.2.2"
56+
"prebuild": "^13.0.0",
57+
"prettier": "^3.2.5",
58+
"tsd": "^0.31.0",
59+
"typescript": "^5.4.5"
5860
}
5961
}

0 commit comments

Comments
 (0)