Compare commits
4 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
d79187dfb4
|
|||
|
2325afaaf0
|
|||
|
9c92ab9d34
|
|||
|
5bcb6feeac
|
@@ -18,13 +18,17 @@ jobs:
|
||||
- uses: bufbuild/buf-setup-action@v1.47.2
|
||||
- run: go install google.golang.org/protobuf/cmd/protoc-gen-go@latest
|
||||
- run: go install google.golang.org/grpc/cmd/protoc-gen-go-grpc@latest
|
||||
- run: npm install --save-dev @bufbuild/protoc-gen-es
|
||||
- run: npm init && npm install --save-dev @bufbuild/protobuf @bufbuild/protoc-gen-es @bufbuild/buf
|
||||
- run: buf --version
|
||||
- run: pwd
|
||||
- run: ls -aRl ./
|
||||
- uses: actions/checkout@v4
|
||||
with:
|
||||
token: ${{ gitea.token }}
|
||||
path: ./
|
||||
- run: npx buf generate
|
||||
- run: pwd
|
||||
- run: ls -aRl ./
|
||||
- run: buf generate
|
||||
- run: |
|
||||
if [ -n ${{ gitea.ref_name }} ]; then
|
||||
mkdir .res
|
||||
|
||||
+1
-1
@@ -42,7 +42,7 @@ plugins:
|
||||
# - remote: buf.build/bufbuild/es:v2.2.2
|
||||
# # opt: import_prefix=github.com/nfel
|
||||
# out: stub/ts
|
||||
- local: protoc-gen-es
|
||||
- local: node_modules/@bufbuild/protoc-gen-es/bin/protoc-gen-es
|
||||
out: stub/ts
|
||||
opt: target=ts
|
||||
|
||||
|
||||
@@ -0,0 +1,7 @@
|
||||
{
|
||||
"devDependencies": {
|
||||
"@bufbuild/buf": "^1.47.2",
|
||||
"@bufbuild/protobuf": "^2.2.2",
|
||||
"@bufbuild/protoc-gen-es": "^2.2.2"
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user