Skip to content

Commit

Permalink
fix(bindings/nodejs): release libs (#146)
Browse files Browse the repository at this point in the history
  • Loading branch information
everpcpc authored Jul 11, 2023
1 parent c452544 commit bd245c8
Show file tree
Hide file tree
Showing 6 changed files with 103 additions and 22 deletions.
16 changes: 9 additions & 7 deletions .github/workflows/bindings.nodejs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -104,9 +104,6 @@ jobs:
if: startsWith(github.ref, 'refs/tags/v')
needs: build
runs-on: ubuntu-latest
defaults:
run:
working-directory: bindings/nodejs
steps:
- uses: actions/checkout@v3
- name: Setup node
Expand All @@ -116,21 +113,26 @@ jobs:
cache: yarn
cache-dependency-path: "bindings/nodejs/yarn.lock"
- name: Corepack
working-directory: bindings/nodejs
run: corepack enable
- name: Install dependencies
working-directory: bindings/nodejs
run: yarn install --immutable
- name: Download all artifacts
uses: actions/download-artifact@v3
with:
path: bindings/nodejs/artifacts
- name: Move artifacts
run: yarn run napi artifacts
- name: List packages
run: ls -R ./npm
shell: bash
working-directory: bindings/nodejs
run: |
ls -lRh artifacts
yarn run napi artifacts
ls -lRh npm
- name: Add LICENSE
working-directory: .
run: cp LICENSE ./bindings/nodejs
- name: Publish
working-directory: bindings/nodejs
run: |
echo "//registry.npmjs.org/:_authToken=$NPM_TOKEN" >> ~/.npmrc
npm publish --access public --provenance
Expand Down
19 changes: 19 additions & 0 deletions bindings/nodejs/npm/darwin-arm64/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
{
"name": "@databend-driver/lib-darwin-arm64",
"repository": "https://github.com/datafuselabs/bendsql.git",
"version": "0.1.0",
"os": [
"darwin"
],
"cpu": [
"arm64"
],
"main": "databend-driver.darwin-arm64.node",
"files": [
"databend-driver.darwin-arm64.node"
],
"license": "Apache-2.0",
"engines": {
"node": ">= 10"
}
}
19 changes: 19 additions & 0 deletions bindings/nodejs/npm/darwin-x64/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
{
"name": "@databend-driver/lib-darwin-x64",
"repository": "https://github.com/datafuselabs/bendsql.git",
"version": "0.1.0",
"os": [
"darwin"
],
"cpu": [
"x64"
],
"main": "databend-driver.darwin-x64.node",
"files": [
"databend-driver.darwin-x64.node"
],
"license": "Apache-2.0",
"engines": {
"node": ">= 10"
}
}
22 changes: 22 additions & 0 deletions bindings/nodejs/npm/linux-x64-gnu/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
{
"name": "@databend-driver/lib-linux-x64-gnu",
"repository": "https://github.com/datafuselabs/bendsql.git",
"version": "0.1.0",
"os": [
"linux"
],
"cpu": [
"x64"
],
"main": "databend-driver.linux-x64-gnu.node",
"files": [
"databend-driver.linux-x64-gnu.node"
],
"license": "Apache-2.0",
"engines": {
"node": ">= 10"
},
"libc": [
"glibc"
]
}
19 changes: 19 additions & 0 deletions bindings/nodejs/npm/win32-x64-msvc/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
{
"name": "@databend-driver/lib-win32-x64-msvc",
"repository": "https://github.com/datafuselabs/bendsql.git",
"version": "0.1.0",
"os": [
"win32"
],
"cpu": [
"x64"
],
"main": "databend-driver.win32-x64-msvc.node",
"files": [
"databend-driver.win32-x64-msvc.node"
],
"license": "Apache-2.0",
"engines": {
"node": ">= 10"
}
}
30 changes: 15 additions & 15 deletions bindings/nodejs/yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,11 @@ __metadata:
cacheKey: 8

"@babel/runtime@npm:^7.15.4":
version: 7.22.5
resolution: "@babel/runtime@npm:7.22.5"
version: 7.22.6
resolution: "@babel/runtime@npm:7.22.6"
dependencies:
regenerator-runtime: ^0.13.11
checksum: 12a50b7de2531beef38840d17af50c55a094253697600cee255311222390c68eed704829308d4fd305e1b3dfbce113272e428e9d9d45b1730e0fede997eaceb1
checksum: e585338287c4514a713babf4fdb8fc2a67adcebab3e7723a739fc62c79cfda875b314c90fd25f827afb150d781af97bc16c85bfdbfa2889f06053879a1ddb597
languageName: node
linkType: hard

Expand Down Expand Up @@ -209,9 +209,9 @@ __metadata:
linkType: hard

"@types/node@npm:^18.14.5":
version: 18.16.18
resolution: "@types/node@npm:18.16.18"
checksum: d32d8a0a04cd3f5ecb361bcb42f3a07623881ac90d680e06bf626defb3c663a94860d11690babe607cfe67265eceeb8a59ba5fe40c0e49f5a1b01e0088640469
version: 18.16.19
resolution: "@types/node@npm:18.16.19"
checksum: 63c31f09616508aa7135380a4c79470a897b75f9ff3a70eb069e534dfabdec3f32fb0f9df5939127f1086614d980ddea0fa5e8cc29a49103c4f74cd687618aaf
languageName: node
linkType: hard

Expand Down Expand Up @@ -683,11 +683,11 @@ __metadata:
linkType: hard

"minimatch@npm:^9.0.0":
version: 9.0.2
resolution: "minimatch@npm:9.0.2"
version: 9.0.3
resolution: "minimatch@npm:9.0.3"
dependencies:
brace-expansion: ^2.0.1
checksum: 2eb12e2047a062fdb973fb51b9803f2455e3a00977858c038d66646d303a5a15bbcbc6ed5a2fc403bc869b1309f829ed3acd881d3246faf044ea7a494974b924
checksum: 253487976bf485b612f16bf57463520a14f512662e592e95c571afdab1442a6a6864b6c88f248ce6fc4ff0b6de04ac7aa6c8bb51e868e99d1d65eb0658a708b5
languageName: node
linkType: hard

Expand Down Expand Up @@ -1013,22 +1013,22 @@ __metadata:
linkType: hard

"typescript@npm:^5.1.5":
version: 5.1.5
resolution: "typescript@npm:5.1.5"
version: 5.1.6
resolution: "typescript@npm:5.1.6"
bin:
tsc: bin/tsc
tsserver: bin/tsserver
checksum: 0eef8699e05ae767096924dbed633c340b4d36e953bb8ed87fb12e9dd9dcea5055ceac7182c614a556dbd346a8a82df799d330e1e286ae66e17c84e1710f6a6f
checksum: b2f2c35096035fe1f5facd1e38922ccb8558996331405eb00a5111cc948b2e733163cc22fab5db46992aba7dd520fff637f2c1df4996ff0e134e77d3249a7350
languageName: node
linkType: hard

"typescript@patch:typescript@^5.1.5#~builtin<compat/typescript>":
version: 5.1.5
resolution: "typescript@patch:typescript@npm%3A5.1.5#~builtin<compat/typescript>::version=5.1.5&hash=77c9e2"
version: 5.1.6
resolution: "typescript@patch:typescript@npm%3A5.1.6#~builtin<compat/typescript>::version=5.1.6&hash=77c9e2"
bin:
tsc: bin/tsc
tsserver: bin/tsserver
checksum: 33020c886b1aa2e948b557aad4986cf6448b30c58915b12cac873bd35dc2260d93f71af8a661d2c9f352b5d099d9df13a59688e222e79276099b9c5d86d847be
checksum: 21e88b0a0c0226f9cb9fd25b9626fb05b4c0f3fddac521844a13e1f30beb8f14e90bd409a9ac43c812c5946d714d6e0dee12d5d02dfc1c562c5aacfa1f49b606
languageName: node
linkType: hard

Expand Down

0 comments on commit bd245c8

Please sign in to comment.