4 Commits

Author SHA1 Message Date
Дмитрий
add54d15e5 update: package json version 2026-03-30 18:32:23 +03:00
Дмитрий
4f1a68df5a update: update publish file add git
Some checks failed
Publish / Publish Job (push) Failing after 2m31s
2026-03-30 18:28:41 +03:00
Дмитрий
9f5afc5a36 fix: ganerate proto file for golang
All checks were successful
Publish / Publish Job (push) Successful in 2m34s
2026-03-30 18:12:33 +03:00
Дмитрий
6666bb1a74 add: add go repository
All checks were successful
Publish / Publish Job (push) Successful in 2m28s
2026-03-30 16:40:36 +03:00
4 changed files with 19 additions and 3 deletions

View File

@@ -48,9 +48,22 @@ jobs:
- name: Generate Protobuf
run: |
npm install -g ts-proto
mkdir -p ./gen/go # Создаем вложенную папку для Go
protoc -I ./proto ./proto/*.proto \
--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: Commit and push changes
run: |
# Представляемся Git-ботом
git config --global user.name "github-actions[bot]"
git config --global user.email "github-actions[bot]@users.noreply.github.com"
# Добавляем папку gen в индекс
git add ./gen
# Проверяем, есть ли изменения. Если есть — коммитим и пушим.
git diff --quiet && git diff --staged --quiet || (git commit -m "chore: auto-generate protobuf files [skip ci]" && git push)
- name: Publish package
run: npm publish

3
go.mod Normal file
View File

@@ -0,0 +1,3 @@
module git.lendry.ru/lendry-erp/proto
go 1.26.1

View File

@@ -1,6 +1,6 @@
{
"name": "@lendry-erp/contracts",
"version": "1.0.9",
"version": "1.0.12",
"description": "Protobuf definitions and generated TypeScript types",
"type": "commonjs",
"main": "./dist/index.js",

View File

@@ -2,7 +2,7 @@ syntax = "proto3";
package ldap_service;
option go_package = './gen';
option go_package = "git.lendry.ru/lendry-erp/gen;ldap_service";
service LdapAuth {
rpc VerifyUser (VerifyRequest) returns (VerifyResponse);