diff --git a/.gitea/workflows/buf-ci.yaml b/.gitea/workflows/buf-ci.yaml index a0d8c81..ab48d06 100644 --- a/.gitea/workflows/buf-ci.yaml +++ b/.gitea/workflows/buf-ci.yaml @@ -11,24 +11,23 @@ jobs: buf: runs-on: ubuntu-latest steps: - - name: Checkout Git - uses: actions/checkout@v4 - with: - token: ${{ secrets.PROD_REG_TOKEN }} - path: ./ - submodules: recursive # - uses: bufbuild/buf-action@v1 # with: # token: 3f12fe38656b6e6423daad49945922b292322862cac00f4a922f68ea44e44c00 # setup_only: true # pr_comment: true - - uses: bufbuild/buf-setup-action@v1.47.2 - uses: actions/setup-go@v5 with: - go-version: '>=1.17.0' + go-version: '>=1.18.0' + - 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 - # Ensure that `buf` is installed + - run: npm npm install @bufbuild/protobuf @bufbuild/protoc-gen-es @bufbuild/buf - run: buf --version + - name: Checkout Git + uses: actions/checkout@v4 + with: + token: ${{ secrets.PROD_REG_TOKEN }} + path: ./ - run: buf generate - run: ls -aRhl diff --git a/.gitignore b/.gitignore index 38a0176..f18fa72 100644 --- a/.gitignore +++ b/.gitignore @@ -2,3 +2,4 @@ gen/go stub node_modules +yarn.lock diff --git a/buf.gen.yaml b/buf.gen.yaml index 2b74305..8462320 100644 --- a/buf.gen.yaml +++ b/buf.gen.yaml @@ -42,6 +42,9 @@ plugins: # - remote: buf.build/bufbuild/es:v2.2.2 # # opt: import_prefix=github.com/nfel # out: stub/ts + - local: protoc-gen-es + out: stub/ts + opt: target=ts # - local: protobuf-ts # # opt: import_prefix=github.com/nfel diff --git a/package.json b/package.json new file mode 100644 index 0000000..b9a3d98 --- /dev/null +++ b/package.json @@ -0,0 +1,7 @@ +{ + "devDependencies": { + "@bufbuild/buf": "^1.47.2", + "@bufbuild/protobuf": "^2.2.2", + "@bufbuild/protoc-gen-es": "^2.2.2" + } +}