Files
contracts/.github/workflows/publish.yml
Дмитрий f5d18a63e5
All checks were successful
Publish / Publish Job (push) Successful in 1m14s
first commit
2026-03-26 15:45:17 +03:00

39 lines
805 B
YAML

name: Publish
on:
push:
branches:
- main
jobs:
publish:
name: Publish Job
runs-on: ubuntu-latest
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 TS Protobuf
run: npm run generate
- name: Publish package
run: npm publish
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}