Skip to content

Commit 370edb1

Browse files
committed
Add typescript compile action
1 parent 0484a68 commit 370edb1

File tree

1 file changed

+22
-0
lines changed

1 file changed

+22
-0
lines changed
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
name: ProtocDock
2+
3+
on: [push]
4+
5+
jobs:
6+
compile:
7+
runs-on: ubuntu-latest
8+
9+
steps:
10+
- name: Checkout source
11+
uses: actions/checkout@v4
12+
13+
- name: ProtocDock Compile
14+
uses: valentin-kaiser/protocdock@master
15+
with:
16+
command: 'cd protobuf_definitions && rm -r ./gen/ && mkdir -p ./gen/ && protoc *.proto --plugin=ts-protoc-gen=$PROTOC_GEN_TS_PATH --grpc-web_out="import_style=typescript,mode=grpcweb:./gen/" --proto_path=./protobuf_definitions --ts_out=service=grpc-web:./gen/ --ts_opt=esModuleInterop=true --ts_opt=useOptionals=true --ts_opt=addGrpcMetadata=true --ts_opt=addGrpcWebImports=true'
17+
commit_message: '[GEN] Updated compiled proto definitions'
18+
19+
- name: Publish compiled proto definitions
20+
uses: actions/upload-artifact@v4
21+
with:
22+
path: protobuf_definitions/gen

0 commit comments

Comments
 (0)