fix: ganerate proto file for golang
All checks were successful
Publish / Publish Job (push) Successful in 2m34s
All checks were successful
Publish / Publish Job (push) Successful in 2m34s
This commit is contained in:
4
.github/workflows/publish.yml
vendored
4
.github/workflows/publish.yml
vendored
@@ -48,9 +48,11 @@ jobs:
|
|||||||
- name: Generate Protobuf
|
- name: Generate Protobuf
|
||||||
run: |
|
run: |
|
||||||
npm install -g ts-proto
|
npm install -g ts-proto
|
||||||
|
mkdir -p ./gen/go # Создаем вложенную папку для Go
|
||||||
protoc -I ./proto ./proto/*.proto \
|
protoc -I ./proto ./proto/*.proto \
|
||||||
--ts_proto_out=nestJs=true,package=omit:./gen \
|
--ts_proto_out=nestJs=true,package=omit:./gen \
|
||||||
--go-grpc_out=paths=source_relative:./gen
|
--go_out=paths=source_relative:./gen/go \
|
||||||
|
--go-grpc_out=paths=source_relative:./gen/go
|
||||||
|
|
||||||
- name: Publish package
|
- name: Publish package
|
||||||
run: npm publish
|
run: npm publish
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "@lendry-erp/contracts",
|
"name": "@lendry-erp/contracts",
|
||||||
"version": "1.0.10",
|
"version": "1.0.11",
|
||||||
"description": "Protobuf definitions and generated TypeScript types",
|
"description": "Protobuf definitions and generated TypeScript types",
|
||||||
"type": "commonjs",
|
"type": "commonjs",
|
||||||
"main": "./dist/index.js",
|
"main": "./dist/index.js",
|
||||||
|
|||||||
Reference in New Issue
Block a user