Skip to content

Commit a459486

Browse files
committed
hot-fix: release 1.11.0-fix-1
1 parent a0278db commit a459486

File tree

3 files changed

+40
-17
lines changed

3 files changed

+40
-17
lines changed

.github/workflows/ci-build-release-napi.yml

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,15 @@ jobs:
8888
name: macos-${{matrix.nodejs}}-${{matrix.arch}}
8989
path: build/stage/*/*.tar.gz
9090

91+
- name: Upload binaries to release
92+
uses: svenstaro/upload-release-action@v2
93+
with:
94+
repo_token: ${{ secrets.GITHUB_TOKEN }}
95+
file: build/stage/*/*.tar.gz
96+
tag: ${{ github.ref }}
97+
overwrite: true
98+
file_glob: true
99+
91100
linux-napi:
92101
name: Build NAPI ${{matrix.image}} - Node ${{matrix.nodejs}} - ${{matrix.cpu.platform}}
93102
runs-on: ubuntu-22.04
@@ -140,6 +149,15 @@ jobs:
140149
name: ${{matrix.image}}-${{matrix.nodejs}}-${{matrix.cpu.platform}}
141150
path: build/stage/*/*.tar.gz
142151

152+
- name: Upload binaries to release
153+
uses: svenstaro/upload-release-action@v2
154+
with:
155+
repo_token: ${{ secrets.GITHUB_TOKEN }}
156+
file: build/stage/*/*.tar.gz
157+
tag: ${{ github.ref }}
158+
overwrite: true
159+
file_glob: true
160+
143161
windows-napi:
144162
name: Build NAPI windows - Node ${{matrix.nodejs}} - ${{matrix.arch}}
145163
runs-on: windows-2022
@@ -209,3 +227,12 @@ jobs:
209227
with:
210228
name: windows-${{matrix.nodejs}}-${{matrix.arch}}
211229
path: build/stage/*/*.tar.gz
230+
231+
- name: Upload binaries to release
232+
uses: svenstaro/upload-release-action@v2
233+
with:
234+
repo_token: ${{ secrets.GITHUB_TOKEN }}
235+
file: build/stage/*/*.tar.gz
236+
tag: ${{ github.ref }}
237+
overwrite: true
238+
file_glob: true

package.json

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
2-
"name": "pulsar-client",
3-
"version": "1.12.0-rc.0",
2+
"name": "shibaodi-pulsar-client",
3+
"version": "1.11.0-fix.1",
44
"description": "Pulsar Node.js client",
55
"main": "index.js",
66
"types": "index.d.ts",
@@ -25,7 +25,7 @@
2525
},
2626
"repository": {
2727
"type": "git",
28-
"url": "https://github.com/apache/pulsar-client-node.git"
28+
"url": "https://github.com/shibd/pulsar-client-node.git"
2929
},
3030
"homepage": "https://pulsar.apache.org/docs/en/client-libraries-node",
3131
"author": "Apache Software Foundation",
@@ -61,8 +61,8 @@
6161
"binary": {
6262
"module_name": "pulsar",
6363
"module_path": "./lib/binding/",
64-
"host": "https://archive.apache.org/dist/pulsar/pulsar-client-node/",
65-
"remote_path": "pulsar-client-node-{version}",
64+
"host": "https://github.com/shibd/pulsar-client-node/releases/download/",
65+
"remote_path": "v{version}",
6666
"package_name": "napi-{platform}-{libc}-{arch}.tar.gz"
6767
}
6868
}

pkg/linux/Dockerfile_linux_glibc

Lines changed: 8 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -17,19 +17,15 @@
1717
# under the License.
1818
#
1919

20-
FROM centos:7
20+
ARG NODE_VERSION
2121

22-
RUN yum update -y
23-
RUN yum install -y gcc gcc-c++ make python3
22+
FROM node:${NODE_VERSION}-buster
2423

25-
WORKDIR /app
26-
ARG PLATFORM
27-
RUN SUFFIX=$(echo ${PLATFORM} | sed 's/86_//') && \
28-
echo $SUFFIX && \
29-
curl -O -L https://nodejs.org/download/release/v16.19.0/node-v16.19.0-linux-$SUFFIX.tar.gz && \
30-
tar zxf node-v16.19.0-linux-$SUFFIX.tar.gz && \
31-
mv node-v16.19.0-linux-$SUFFIX node-v16.19.0
32-
33-
ENV PATH="/app/node-v16.19.0/bin:$PATH"
24+
RUN apt-get update -y && \
25+
apt-get install -y \
26+
curl \
27+
g++ \
28+
make \
29+
python3
3430

3531
CMD ["sh"]

0 commit comments

Comments
 (0)