ci: fix pipeline
All checks were successful
Publish / Publish npm package action (push) Successful in 14s

This commit is contained in:
Sergey Krylov 2026-01-21 05:21:03 +03:00
parent c5aedf698f
commit 80f62ccbe5
3 changed files with 64 additions and 3 deletions

View File

@ -11,15 +11,23 @@ jobs:
steps:
- name: 'Checkout repository'
uses: actions/checkout@v4
- name: 'Setup dependencies'
uses: actions/setup-node@v4
with:
node-version: 20
registry-url: 'https://git.ksv741.keenetic.pro/api/packages/teacinema/npm/'
registry-url: https://git.ksv741.keenetic.pro/api/packages/teacinema/npm/
scope: '@teacinema'
- name: 'Enable corepack'
run: corepack enable
- name: 'Install dependencies'
run: yarn install --frozen-lockfile
- name: 'Generate contracts'
run: yarn generate
- name: 'Publish to Gitea npm registry'
run: npm publish
env:

View File

@ -3,7 +3,7 @@
"version": "1.0.0",
"description": "Protocol Buffers contracts for microservices",
"scripts": {
"generate": "protoc -I ./proto ./proto/*.proto --ts_proto_out=./gen --ts_proto_opt=nestJs=true,package=omit"
"generate": "npx protoc -I ./proto ./proto/*.proto --ts_proto_out=./gen --ts_proto_opt=nestJs=true,package=omit"
},
"files": [
"gen",
@ -14,6 +14,8 @@
},
"dependencies": {
"@nestjs/microservices": "^11.1.12",
"rxjs": "^7.8.2"
"rxjs": "^7.8.2",
"protoc": "33.4.0",
"ts-proto": "2.11.0"
}
}

View File

@ -2,6 +2,11 @@
# yarn lockfile v1
"@bufbuild/protobuf@^2.0.0", "@bufbuild/protobuf@^2.10.2":
version "2.10.2"
resolved "https://registry.yarnpkg.com/@bufbuild/protobuf/-/protobuf-2.10.2.tgz#d7c063301f2a33095fc202f06bf3cce0c138dfcd"
integrity sha512-uFsRXwIGyu+r6AMdz+XijIIZJYpoWeYzILt5yZ2d3mCjQrWUTVpVD9WL/jZAbvp+Ed04rOhrsk7FiTcEDseB5A==
"@nestjs/microservices@^11.1.12":
version "11.1.12"
resolved "https://registry.yarnpkg.com/@nestjs/microservices/-/microservices-11.1.12.tgz#05c497eb5ddcae09ae8ac0d3aa1bcd0b7336816b"
@ -10,11 +15,33 @@
iterare "1.2.1"
tslib "2.8.1"
case-anything@^2.1.13:
version "2.1.13"
resolved "https://registry.yarnpkg.com/case-anything/-/case-anything-2.1.13.tgz#0cdc16278cb29a7fcdeb072400da3f342ba329e9"
integrity sha512-zlOQ80VrQ2Ue+ymH5OuM/DlDq64mEm+B9UTdHULv5osUMD6HalNTblf2b1u/m6QecjsnOkBpqVZ+XPwIVsy7Ng==
detect-libc@^1.0.3:
version "1.0.3"
resolved "https://registry.yarnpkg.com/detect-libc/-/detect-libc-1.0.3.tgz#fa137c4bd698edf55cd5cd02ac559f91a4c4ba9b"
integrity sha512-pGjwhsmsp4kL2RTz08wcOlGN83otlqHeD/Z5T8GXZB+/YcpQ/dgo+lbU8ZsGxV0HIvqqxo9l7mqYwyYMD9bKDg==
dprint-node@^1.0.8:
version "1.0.8"
resolved "https://registry.yarnpkg.com/dprint-node/-/dprint-node-1.0.8.tgz#a02470722d8208a7d7eb3704328afda1d6758625"
integrity sha512-iVKnUtYfGrYcW1ZAlfR/F59cUVL8QIhWoBJoSjkkdua/dkWIgjZfiLMeTjiB06X0ZLkQ0M2C1VbUj/CxkIf1zg==
dependencies:
detect-libc "^1.0.3"
iterare@1.2.1:
version "1.2.1"
resolved "https://registry.yarnpkg.com/iterare/-/iterare-1.2.1.tgz#139c400ff7363690e33abffa33cbba8920f00042"
integrity sha512-RKYVTCjAnRthyJes037NX/IiqeidgN1xc3j1RjFfECFp28A1GVwK9nA+i0rJPaHqSZwygLzRnFlzUuHFoWWy+Q==
protoc@33.4.0:
version "33.4.0"
resolved "https://registry.yarnpkg.com/protoc/-/protoc-33.4.0.tgz#4a288b59f5f50b9a2c4bbf345276357e59dd6f10"
integrity sha512-dC1SJKbn4f60onsAMrfiPMygfSz4w/tPGHtPCqMSa5CLfHocJXkHjsvXeuuhjSPAJ8uUc8rfUvs0Hy9nmKIOhA==
rxjs@^7.8.2:
version "7.8.2"
resolved "https://registry.yarnpkg.com/rxjs/-/rxjs-7.8.2.tgz#955bc473ed8af11a002a2be52071bf475638607b"
@ -22,6 +49,30 @@ rxjs@^7.8.2:
dependencies:
tslib "^2.1.0"
ts-poet@^6.12.0:
version "6.12.0"
resolved "https://registry.yarnpkg.com/ts-poet/-/ts-poet-6.12.0.tgz#f28eb91778fdff8e1b264600c7ddddb40cd39d84"
integrity sha512-xo+iRNMWqyvXpFTaOAvLPA5QAWO6TZrSUs5s4Odaya3epqofBu/fMLHEWl8jPmjhA0s9sgj9sNvF1BmaQlmQkA==
dependencies:
dprint-node "^1.0.8"
ts-proto-descriptors@2.1.0:
version "2.1.0"
resolved "https://registry.yarnpkg.com/ts-proto-descriptors/-/ts-proto-descriptors-2.1.0.tgz#0c60525ea94748f7b3f394dc10d6eb8eeac4fe39"
integrity sha512-S5EZYEQ6L9KLFfjSRpZWDIXDV/W7tAj8uW7pLsihIxyr62EAVSiKuVPwE8iWnr849Bqa53enex1jhDUcpgquzA==
dependencies:
"@bufbuild/protobuf" "^2.0.0"
ts-proto@2.11.0:
version "2.11.0"
resolved "https://registry.yarnpkg.com/ts-proto/-/ts-proto-2.11.0.tgz#4b24b3a39893441d97e8a875e7d7c509a7bb4521"
integrity sha512-Emqt0T/Wf74aT+IAoOqEkWWhxVOVF6QwVW4CBIyL3RRQORJpaQDVHy/Ykg9psQH/Zo6XMpT9KBRjpkVSZ0vXkQ==
dependencies:
"@bufbuild/protobuf" "^2.10.2"
case-anything "^2.1.13"
ts-poet "^6.12.0"
ts-proto-descriptors "2.1.0"
tslib@2.8.1, tslib@^2.1.0:
version "2.8.1"
resolved "https://registry.yarnpkg.com/tslib/-/tslib-2.8.1.tgz#612efe4ed235d567e8aba5f2a5fab70280ade83f"