From bd245c826b2d3118c6e4c7721fe0def26f37d427 Mon Sep 17 00:00:00 2001 From: everpcpc Date: Tue, 11 Jul 2023 11:22:11 +0800 Subject: [PATCH] fix(bindings/nodejs): release libs (#146) --- .github/workflows/bindings.nodejs.yml | 16 +++++----- bindings/nodejs/npm/darwin-arm64/package.json | 19 ++++++++++++ bindings/nodejs/npm/darwin-x64/package.json | 19 ++++++++++++ .../nodejs/npm/linux-x64-gnu/package.json | 22 ++++++++++++++ .../nodejs/npm/win32-x64-msvc/package.json | 19 ++++++++++++ bindings/nodejs/yarn.lock | 30 +++++++++---------- 6 files changed, 103 insertions(+), 22 deletions(-) create mode 100644 bindings/nodejs/npm/darwin-arm64/package.json create mode 100644 bindings/nodejs/npm/darwin-x64/package.json create mode 100644 bindings/nodejs/npm/linux-x64-gnu/package.json create mode 100644 bindings/nodejs/npm/win32-x64-msvc/package.json diff --git a/.github/workflows/bindings.nodejs.yml b/.github/workflows/bindings.nodejs.yml index eb9c4a38f..352a20c2f 100644 --- a/.github/workflows/bindings.nodejs.yml +++ b/.github/workflows/bindings.nodejs.yml @@ -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 @@ -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 diff --git a/bindings/nodejs/npm/darwin-arm64/package.json b/bindings/nodejs/npm/darwin-arm64/package.json new file mode 100644 index 000000000..62e41730f --- /dev/null +++ b/bindings/nodejs/npm/darwin-arm64/package.json @@ -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" + } +} diff --git a/bindings/nodejs/npm/darwin-x64/package.json b/bindings/nodejs/npm/darwin-x64/package.json new file mode 100644 index 000000000..86f256b1d --- /dev/null +++ b/bindings/nodejs/npm/darwin-x64/package.json @@ -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" + } +} diff --git a/bindings/nodejs/npm/linux-x64-gnu/package.json b/bindings/nodejs/npm/linux-x64-gnu/package.json new file mode 100644 index 000000000..523962523 --- /dev/null +++ b/bindings/nodejs/npm/linux-x64-gnu/package.json @@ -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" + ] +} diff --git a/bindings/nodejs/npm/win32-x64-msvc/package.json b/bindings/nodejs/npm/win32-x64-msvc/package.json new file mode 100644 index 000000000..e27957803 --- /dev/null +++ b/bindings/nodejs/npm/win32-x64-msvc/package.json @@ -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" + } +} diff --git a/bindings/nodejs/yarn.lock b/bindings/nodejs/yarn.lock index c7083be46..6b441eeb8 100644 --- a/bindings/nodejs/yarn.lock +++ b/bindings/nodejs/yarn.lock @@ -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 @@ -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 @@ -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 @@ -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": - version: 5.1.5 - resolution: "typescript@patch:typescript@npm%3A5.1.5#~builtin::version=5.1.5&hash=77c9e2" + version: 5.1.6 + resolution: "typescript@patch:typescript@npm%3A5.1.6#~builtin::version=5.1.6&hash=77c9e2" bin: tsc: bin/tsc tsserver: bin/tsserver - checksum: 33020c886b1aa2e948b557aad4986cf6448b30c58915b12cac873bd35dc2260d93f71af8a661d2c9f352b5d099d9df13a59688e222e79276099b9c5d86d847be + checksum: 21e88b0a0c0226f9cb9fd25b9626fb05b4c0f3fddac521844a13e1f30beb8f14e90bd409a9ac43c812c5946d714d6e0dee12d5d02dfc1c562c5aacfa1f49b606 languageName: node linkType: hard