From f30703d0965823e328e97f92ed881930e72049dd Mon Sep 17 00:00:00 2001 From: Baodi Shi Date: Tue, 15 Oct 2024 15:26:48 +0800 Subject: [PATCH] Hot release for #398 --- .github/workflows/ci-build-release-napi.yml | 27 +++++++++++++++++++++ package-lock.json | 8 +++--- package.json | 8 +++--- 3 files changed, 35 insertions(+), 8 deletions(-) diff --git a/.github/workflows/ci-build-release-napi.yml b/.github/workflows/ci-build-release-napi.yml index fe779f7..4730113 100644 --- a/.github/workflows/ci-build-release-napi.yml +++ b/.github/workflows/ci-build-release-napi.yml @@ -88,6 +88,15 @@ jobs: name: macos-${{matrix.nodejs}}-${{matrix.arch}} path: build/stage/*/*.tar.gz + - name: Upload binaries to release + uses: svenstaro/upload-release-action@v2 + with: + repo_token: ${{ secrets.GITHUB_TOKEN }} + file: build/stage/*/*.tar.gz + tag: ${{ github.ref }} + overwrite: true + file_glob: true + linux-napi: name: Build NAPI ${{matrix.image}} - Node ${{matrix.nodejs}} - ${{matrix.cpu.platform}} runs-on: ubuntu-22.04 @@ -140,6 +149,15 @@ jobs: name: ${{matrix.image}}-${{matrix.nodejs}}-${{matrix.cpu.platform}} path: build/stage/*/*.tar.gz + - name: Upload binaries to release + uses: svenstaro/upload-release-action@v2 + with: + repo_token: ${{ secrets.GITHUB_TOKEN }} + file: build/stage/*/*.tar.gz + tag: ${{ github.ref }} + overwrite: true + file_glob: true + windows-napi: name: Build NAPI windows - Node ${{matrix.nodejs}} - ${{matrix.arch}} runs-on: windows-2022 @@ -209,3 +227,12 @@ jobs: with: name: windows-${{matrix.nodejs}}-${{matrix.arch}} path: build/stage/*/*.tar.gz + + - name: Upload binaries to release + uses: svenstaro/upload-release-action@v2 + with: + repo_token: ${{ secrets.GITHUB_TOKEN }} + file: build/stage/*/*.tar.gz + tag: ${{ github.ref }} + overwrite: true + file_glob: true diff --git a/package-lock.json b/package-lock.json index fcbd4b1..3bd16af 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { - "name": "pulsar-client", - "version": "1.13.0-rc.0", + "name": "shibaodi-pulsar-client", + "version": "1.12.0-fix.1", "lockfileVersion": 2, "requires": true, "packages": { "": { - "name": "pulsar-client", - "version": "1.13.0-rc.0", + "name": "shibaodi-pulsar-client", + "version": "1.12.0-fix.1", "hasInstallScript": true, "license": "Apache-2.0", "dependencies": { diff --git a/package.json b/package.json index bf37ae1..830e797 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { - "name": "pulsar-client", - "version": "1.13.0-rc.0", + "name": "shibaodi-pulsar-client", + "version": "1.12.0-fix.1", "description": "Pulsar Node.js client", "main": "index.js", "types": "index.d.ts", @@ -61,8 +61,8 @@ "binary": { "module_name": "pulsar", "module_path": "./lib/binding/", - "host": "https://archive.apache.org/dist/pulsar/pulsar-client-node/", - "remote_path": "pulsar-client-node-{version}", + "host": "https://github.com/shibd/pulsar-client-node/releases/download/", + "remote_path": "v{version}", "package_name": "napi-{platform}-{libc}-{arch}.tar.gz" } }