-
Notifications
You must be signed in to change notification settings - Fork 93
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Gen js grpc lib + proto cleanup (#408)
* scritp for generating js bindings, update protos for consistency Signed-off-by: Aaron Sutula <hi@asutula.com> * move reputation module to latest rpc style Signed-off-by: Aaron Sutula <hi@asutula.com> * update health, net, ffs to latest rpc patterns Signed-off-by: Aaron Sutula <hi@asutula.com> * move deals to latest rpc patterns Signed-off-by: Aaron Sutula <hi@asutula.com> * updating proto package Signed-off-by: Aaron Sutula <hi@asutula.com> * removing unused proto options Signed-off-by: Aaron Sutula <hi@asutula.com> * move wallet to latest rpc patterns Signed-off-by: Aaron Sutula <hi@asutula.com> * move asks to latest rpc patterns Signed-off-by: Aaron Sutula <hi@asutula.com> * move slashing to latest rpc patterns Signed-off-by: Aaron Sutula <hi@asutula.com> * mover miner to latest rpc patterns Signed-off-by: Aaron Sutula <hi@asutula.com> * top level Makefile commands for generating go protos Signed-off-by: Aaron Sutula <hi@asutula.com> * update ask rpc patterns Signed-off-by: Aaron Sutula <hi@asutula.com> * bash compatible clean-protos command Signed-off-by: Aaron Sutula <hi@asutula.com> * updated rpc naming Signed-off-by: Aaron Sutula <hi@asutula.com>
- Loading branch information
Showing
63 changed files
with
1,659 additions
and
1,672 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
name: Publish JS gRPC bindings | ||
on: | ||
release: | ||
types: [published] | ||
jobs: | ||
|
||
publish_grpc_lib: | ||
name: Publish JS gRPC bindings | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Check out code | ||
uses: actions/checkout@v1 | ||
- name: Get latest tag | ||
id: latesttag | ||
uses: "WyriHaximus/github-action-get-previous-tag@master" | ||
env: | ||
GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}" | ||
- name: Install build tools | ||
run: | | ||
sudo apt-get update | ||
sudo apt-get install -y build-essential | ||
- name: Set up Node | ||
uses: actions/setup-node@v1 | ||
with: | ||
node-version: '12.x' | ||
registry-url: 'https://registry.npmjs.org' | ||
- name: Install protoc | ||
uses: arduino/setup-protoc@master | ||
with: | ||
version: '3.11.2' | ||
- name: Generate JS gRPC bindings | ||
run: | | ||
./scripts/gen-js-protos.sh ("${{ steps.latesttag.outputs.tag }}").replace("v", "") . ./js-grpc | ||
- name: Publish JS gRPC bindings | ||
env: | ||
NODE_AUTH_TOKEN: ${{ secrets.NPM_AUTH_TOKEN }} | ||
run: | | ||
npm publish --access=public | ||
working-directory: ./js-grpc |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.