Skip to content

Update proto files and types #19

Update proto files and types

Update proto files and types #19

name: Lint, format and build
on:
push:
branches:
- master
jobs:
lint-format-build:
name: Lint, format and build
runs-on:
- ubuntu-latest
steps:
- name: checkout
uses: actions/checkout@v3
- name: install npm dependencies
run: npm i
- name: lint, format, build and push automatic fixes
run: |
git config user.name 'github-actions[bot]'
git config user.email '41898282+github-actions[bot]@users.noreply.github.com'
shopt -s globstar
npm run lint || echo -n
npx prettier --config .prettierrc --ignore-path .prettierignore -w *.ts src/**/*.ts
git add *.ts src
git commit -m 'Lint and format code' || echo -n
git push
npm run build
git add dist --force
git commit -m 'Automatic build' || echo -n
git push
bash grpc_gen_types.sh
npm run build
git add src/grpc/types src/grpc/proto.ts dist --force
git commit -m 'Update proto files and types' || echo -n
git push