Skip to content

Commit

Permalink
chore: support node 22
Browse files Browse the repository at this point in the history
  • Loading branch information
marudor committed Jul 27, 2024
1 parent 28c7258 commit 478d57d
Show file tree
Hide file tree
Showing 3 changed files with 427 additions and 433 deletions.
20 changes: 10 additions & 10 deletions .github/workflows/builds.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,13 +14,13 @@ jobs:
strategy:
matrix:
os: [windows-2019, macos-12, ubuntu-20.04]
node: [18, 20, 21]
node: [18, 20, 21, 22]
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- uses: actions/setup-python@v4
with:
python-version: '3.11'
- uses: actions/setup-node@v3
- uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node }}
- run: corepack enable
Expand All @@ -30,20 +30,20 @@ jobs:
- run: pnpm tsd
- run: pnpm test
- run: pnpm prebuild
- uses: actions/upload-artifact@v3
- uses: actions/upload-artifact@v4
with:
name: ${{ matrix.os }}-${{ matrix.node }}-binary
path: 'prebuilds/**/*.tar.gz'
alpine:
runs-on: ubuntu-20.04
strategy:
matrix:
node: [18, 20, 21]
node: [18, 20, 21, 22]
fail-fast: true
container:
image: node:${{ matrix.node }}-alpine
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- run: |
apk add --no-cache python3 make g++
- run: corepack enable
Expand All @@ -53,7 +53,7 @@ jobs:
- run: pnpm tsd
- run: pnpm test
- run: pnpm prebuild
- uses: actions/upload-artifact@v3
- uses: actions/upload-artifact@v4
with:
name: alpine-${{ matrix.node }}-binary
path: 'prebuilds/**/*.tar.gz'
Expand All @@ -62,11 +62,11 @@ jobs:
needs: [alpine, build]
if: startsWith(github.ref, 'refs/tags/v')
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 20
- uses: actions/download-artifact@v2
- uses: actions/download-artifact@v4
with:
path: prebuilds
- id: vars
Expand Down
18 changes: 9 additions & 9 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,11 @@
],
"packageManager": "[email protected]+sha256.487609e857f1c11780cc98dd0bfe4c8a8b11c7f23bc3a4493ac7d263d6fb6c8c",
"description": "libxml bindings for v8 javascript engine",
"version": "0.34.0",
"version": "0.35.0",
"scripts": {
"build": "node-gyp rebuild",
"prebuild": "prebuild",
"prebuild:macArm": "prebuild -t 108 -t 115 -t 120",
"prebuild:macArm": "prebuild -t 108 -t 115 -t 120 -t 127",
"install": "prebuild-install || node-gyp rebuild",
"test": "node --expose_gc ./node_modules/jest/bin/jest.js",
"tsd": "tsd"
Expand Down Expand Up @@ -39,17 +39,17 @@
],
"dependencies": {
"bindings": "~1.5.0",
"nan": "~2.19.0",
"node-gyp": "^10.1.0",
"nan": "~2.20.0",
"node-gyp": "^10.2.0",
"prebuild-install": "^7.1.2"
},
"devDependencies": {
"@types/node": "^20.12.8",
"@types/node": "^20.14.12",
"jest": "^29.7.0",
"jest-watch-typeahead": "^2.2.2",
"prebuild": "^13.0.0",
"prettier": "^3.2.5",
"tsd": "^0.31.0",
"typescript": "^5.4.5"
"prebuild": "^13.0.1",
"prettier": "^3.3.3",
"tsd": "^0.31.1",
"typescript": "^5.5.4"
}
}
Loading

0 comments on commit 478d57d

Please sign in to comment.