Skip to content

Commit

Permalink
hot-fix: release 1.11.0-fix-1
Browse files Browse the repository at this point in the history
  • Loading branch information
shibd committed Jul 1, 2024
1 parent a0278db commit a459486
Show file tree
Hide file tree
Showing 3 changed files with 40 additions and 17 deletions.
27 changes: 27 additions & 0 deletions .github/workflows/ci-build-release-napi.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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
10 changes: 5 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "pulsar-client",
"version": "1.12.0-rc.0",
"name": "shibaodi-pulsar-client",
"version": "1.11.0-fix.1",
"description": "Pulsar Node.js client",
"main": "index.js",
"types": "index.d.ts",
Expand All @@ -25,7 +25,7 @@
},
"repository": {
"type": "git",
"url": "https://github.com/apache/pulsar-client-node.git"
"url": "https://github.com/shibd/pulsar-client-node.git"
},
"homepage": "https://pulsar.apache.org/docs/en/client-libraries-node",
"author": "Apache Software Foundation",
Expand Down Expand Up @@ -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"
}
}
20 changes: 8 additions & 12 deletions pkg/linux/Dockerfile_linux_glibc
Original file line number Diff line number Diff line change
Expand Up @@ -17,19 +17,15 @@
# under the License.
#

FROM centos:7
ARG NODE_VERSION

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

WORKDIR /app
ARG PLATFORM
RUN SUFFIX=$(echo ${PLATFORM} | sed 's/86_//') && \
echo $SUFFIX && \
curl -O -L https://nodejs.org/download/release/v16.19.0/node-v16.19.0-linux-$SUFFIX.tar.gz && \
tar zxf node-v16.19.0-linux-$SUFFIX.tar.gz && \
mv node-v16.19.0-linux-$SUFFIX node-v16.19.0

ENV PATH="/app/node-v16.19.0/bin:$PATH"
RUN apt-get update -y && \
apt-get install -y \
curl \
g++ \
make \
python3

CMD ["sh"]

0 comments on commit a459486

Please sign in to comment.