Skip to content

Commit a787316

Browse files
committed
ci(openapi): regenerate typescript api types
Signed-off-by: Vitor Mattos <1079143+vitormattos@users.noreply.github.com>
1 parent c769fd3 commit a787316

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

.github/workflows/openapi.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,10 @@ jobs:
7878
- name: Regenerate OpenAPI
7979
run: composer run openapi
8080

81+
- name: Regenerate TypeScript OpenAPI types
82+
if: steps.check_typescript_openapi.outputs.files_exists == 'true'
83+
run: npm run typescript:generate
84+
8185
- name: Check openapi*.json and typescript changes
8286
run: |
8387
bash -c "[[ ! \"`git status --porcelain `\" ]] || (echo 'Please run \"composer run openapi\" and commit the openapi*.json files and, if applicable, src/types/openapi/openapi*.ts. See the diff below.' && exit 1)"

0 commit comments

Comments
 (0)