Files
contracts/.github/workflows/publish.yml
Дмитрий c5e57adf5b
Some checks failed
Publish / Publish Job (push) Failing after 1m11s
fix: install ts-proto global
2026-03-30 16:06:05 +03:00

39 lines
961 B
YAML

name: Publish
on:
push:
branches:
- main
jobs:
publish:
name: Publish Job
runs-on: ubuntu-latest
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: 20
registry-url: "https://git.lendry.ru/api/packages/lendry-erp/npm/"
scope: "@lendry-erp"
- name: Install protoc
run: sudo apt-get update && sudo apt-get install -y protobuf-compiler
- name: Install deps
run: npm ci
- name: Build
run: npm run build
- name: Generate Protobuf
run: npm install -g ts-proto, protoc -I ./proto ./proto/*.proto --ts_proto_out=nestJs=true,package=omit:./gen --go_out=paths=source_relative:./gen --go-grpc_out=paths=source_relative:./gen
- name: Publish package
run: npm publish