Skip to content

Commit

Permalink
Use the same version to release the Java library and the Node library (
Browse files Browse the repository at this point in the history
  • Loading branch information
supl authored Jan 19, 2023
1 parent 1614d03 commit f087a4e
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 6 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name: Docker Image Publication
on:
push:
tags:
- java-[0-9]+.[0-9]+.[0-9]+
- v[0-9]+.[0-9]+.[0-9]+

jobs:
publish:
Expand All @@ -17,7 +17,7 @@ jobs:
- name: Set version
id: version
run: |
VERSION=$(echo ${{ github.ref }} | sed -e "s#refs/tags/java-##g")
VERSION=$(echo ${{ github.ref }} | sed -e "s#refs/tags/v##g")
echo ::set-output name=version::${VERSION}
- name: Login to GitHub Container Registry
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/maven-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name: Publish the Java Package to Maven Central Repository
on:
push:
tags:
- java-[0-9]+.[0-9]+.[0-9]+
- v[0-9]+.[0-9]+.[0-9]+

jobs:
publish:
Expand All @@ -17,7 +17,7 @@ jobs:
- name: Set version
id: version
run: |
VERSION=$(echo ${{ github.ref }} | sed -e "s#refs/tags/java-##g")
VERSION=$(echo ${{ github.ref }} | sed -e "s#refs/tags/v##g")
echo ::set-output name=version::${VERSION}
- name: Upload the package to Maven Central Repository
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/npm-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name: NPM Registry Publication
on:
push:
tags:
- node-[0-9]+.[0-9]+.[0-9]+
- v[0-9]+.[0-9]+.[0-9]+

jobs:
publish:
Expand Down
6 changes: 5 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
The Protocol Buffers for Scalar Admin is defined in [admin.proto](./admin.proto).

This repository maintains
- the codes that generated by the Protocol Buffers compiler
- the codes generated by the Protocol Buffers compiler
- the gRPC client libraries used to send requests to the Scalar Admin gRPC servers

## Versioning
The Java and Node client libraries are released with the same version.
Please make sure the versions are the same in [build.gradle](./java/build.gradle) and [package.json](./node/package.json) before you push `v{major}.{minor}.{bugfix}` tags to trigger related GitHub Actions workflows to release them.

0 comments on commit f087a4e

Please sign in to comment.