Skip to content

Commit 7cf6470

Browse files
authored
re-enable build step for openapi for test and publishing (Sofie-Automation#1265)
* chore(ci): Add build step for openapi for test and publishing * chore: fix ci * chore(ci): openapi: re-add gendocs and genserver to CI
1 parent 79d9b35 commit 7cf6470

File tree

2 files changed

+22
-35
lines changed

2 files changed

+22
-35
lines changed

.github/workflows/node.yaml

Lines changed: 14 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -569,13 +569,17 @@ jobs:
569569
yarn
570570
env:
571571
CI: true
572-
- name: Run generator
572+
- name: Build OpenAPI client library
573+
run: |
574+
cd packages/openapi
575+
yarn build
576+
env:
577+
CI: true
578+
- name: Generate OpenAPI docs and server
573579
run: |
574580
cd packages/openapi
575-
576581
yarn gendocs
577582
yarn genserver
578-
yarn genclient:ts
579583
env:
580584
CI: true
581585

@@ -682,22 +686,13 @@ jobs:
682686
yarn build
683687
env:
684688
CI: true
685-
# Temporarily disabled due to failing in CI:
686-
# - name: Generate OpenAPI client library
687-
# if: ${{ steps.do-publish.outputs.tag }}
688-
# uses: hatamiarash7/[email protected]
689-
# with:
690-
# generator: typescript-fetch
691-
# openapi-file: ./packages/openapi/api/actions.yaml
692-
# output-dir: ./packages/openapi/client/ts
693-
# command-args: -p supportsES6=true
694-
# - name: Build OpenAPI client library
695-
# if: ${{ steps.do-publish.outputs.tag }}
696-
# run: |
697-
# cd packages/openapi
698-
# yarn build:main
699-
# env:
700-
# CI: true
689+
- name: Build OpenAPI client library
690+
if: ${{ steps.do-publish.outputs.tag }}
691+
run: |
692+
cd packages/openapi
693+
yarn build
694+
env:
695+
CI: true
701696
- name: Modify dependencies to use npm packages
702697
run: node scripts/prepublish.js
703698
- name: Publish to NPM

.github/workflows/prerelease-libs.yml

Lines changed: 8 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -131,22 +131,14 @@ jobs:
131131
yarn build
132132
env:
133133
CI: true
134-
# Temporarily disabled due to failing in CI:
135-
# - name: Generate OpenAPI client library
136-
# if: ${{ steps.do-publish.outputs.tag }}
137-
# uses: hatamiarash7/[email protected]
138-
# with:
139-
# generator: typescript-fetch
140-
# openapi-file: ./packages/openapi/api/actions.yaml
141-
# output-dir: ./packages/openapi/client/ts
142-
# command-args: -p supportsES6=true
143-
# - name: Build OpenAPI client library
144-
# if: ${{ steps.do-publish.outputs.tag }}
145-
# run: |
146-
# cd packages/openapi
147-
# yarn build:main
148-
# env:
149-
# CI: true
134+
135+
- name: Build OpenAPI client library
136+
if: ${{ steps.do-publish.outputs.publish }}
137+
run: |
138+
cd packages/openapi
139+
yarn build
140+
env:
141+
CI: true
150142
- name: Modify dependencies to use npm packages
151143
run: node scripts/prepublish.js
152144
- name: Publish to NPM

0 commit comments

Comments
 (0)