Switch to JSON Schema rather than protobuf
Some checks failed
Generate and Release Protos / release (push) Failing after 9s
Some checks failed
Generate and Release Protos / release (push) Failing after 9s
This commit is contained in:
@@ -16,34 +16,24 @@ jobs:
|
||||
- name: Get Version
|
||||
id: get_version
|
||||
run: echo "VERSION=${GITHUB_REF#refs/tags/v}" >> $GITHUB_OUTPUT
|
||||
|
||||
- uses: bufbuild/buf-action@v1.3
|
||||
with:
|
||||
setup_only: true
|
||||
version: '1.63.0'
|
||||
|
||||
|
||||
- uses: actions/setup-go@v5
|
||||
with:
|
||||
go-version: '1.23'
|
||||
|
||||
|
||||
- uses: actions/setup-node@v6
|
||||
with:
|
||||
node-version: '18.18.x'
|
||||
registry-url: 'https://git.fjla.uk/api/packages/owlboard/npm'
|
||||
scope: '@owlboard'
|
||||
|
||||
- name: Install Go Protoc Plugin
|
||||
- name: Install Generators
|
||||
run: |
|
||||
go install google.golang.org/protobuf/cmd/protoc-gen-go@latest
|
||||
npm install -g json-schema-to-typescript typescript
|
||||
go install github.com/atombender/go-jsonschema/cmd/go-jsonschema@latest
|
||||
echo "$(go env GOPATH)/bin" >> $GITHUB_PATH
|
||||
|
||||
- name: Install TS-Proto Plugin
|
||||
run: |
|
||||
npm install ts-proto typescript
|
||||
echo "$PATH:$(pwd)/ts-proto" >> $GITHUB_PATH
|
||||
|
||||
- name: Generate Code
|
||||
run: buf generate
|
||||
- run: scripts/build.sh
|
||||
|
||||
- name: Build and Publish TS
|
||||
working-directory: gen/ts
|
||||
|
||||
Reference in New Issue
Block a user