File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -68,13 +68,17 @@ jobs:
6868 jq --arg v "$VERSION" '.version = $v' package.json > package.tmp.json && mv package.tmp.json package.json
6969 jq --arg v "$VERSION" '.version = $v' frontend/package.json > frontend/package.tmp.json && mv frontend/package.tmp.json frontend/package.json
7070 sed -i "s/const version = .*/const version = \"$VERSION\"/" go-relay/cmd/server/main.go
71+ sed -i "s/const apiVersion = .*/const apiVersion = \"$VERSION\"/" go-relay/cmd/docgen/main.go
72+
73+ # Regenerate OpenAPI / AsyncAPI / api-docs JSON with the new version
74+ go run ./go-relay/cmd/docgen/
7175
7276 # Configure git
7377 git config --global user.name 'github-actions[bot]'
7478 git config --global user.email 'github-actions[bot]@users.noreply.github.com'
7579
7680 # Commit and push changes only if something actually changed
77- git add package.json frontend/package.json go-relay/cmd/server/main.go
81+ git add package.json frontend/package.json go-relay/cmd/server/main.go go-relay/cmd/docgen/main.go public/openapi.json public/asyncapi.json public/api-docs.json
7882 if git diff --cached --quiet; then
7983 echo "Version already up to date, skipping commit"
8084 else
You can’t perform that action at this time.
0 commit comments