Compare commits
2 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
add54d15e5 | ||
|
|
4f1a68df5a |
11
.github/workflows/publish.yml
vendored
11
.github/workflows/publish.yml
vendored
@@ -54,5 +54,16 @@ jobs:
|
|||||||
--go_out=paths=source_relative:./gen/go \
|
--go_out=paths=source_relative:./gen/go \
|
||||||
--go-grpc_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
|
- name: Publish package
|
||||||
run: npm publish
|
run: npm publish
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "@lendry-erp/contracts",
|
"name": "@lendry-erp/contracts",
|
||||||
"version": "1.0.11",
|
"version": "1.0.12",
|
||||||
"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