Skip to content

Commit d97c6a2

Browse files
author
Mint de Wit
authored
Merge pull request Sofie-Automation#1182 from nrkno/chore/openapi-ci
Chore/openapi ci
2 parents 3374f2b + acf7942 commit d97c6a2

File tree

4 files changed

+51
-1
lines changed

4 files changed

+51
-1
lines changed

.github/workflows/node.yaml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -682,6 +682,21 @@ jobs:
682682
yarn build
683683
env:
684684
CI: true
685+
- name: Generate OpenAPI client library
686+
if: ${{ steps.do-publish.outputs.tag }}
687+
uses: hatamiarash7/[email protected]
688+
with:
689+
generator: typescript-fetch
690+
openapi-file: ./packages/openapi/api/actions.yaml
691+
output-dir: ./packages/openapi/client/ts
692+
command-args: -p supportsES6=true
693+
- name: Build OpenAPI client library
694+
if: ${{ steps.do-publish.outputs.tag }}
695+
run: |
696+
cd packages/openapi
697+
yarn build:main
698+
env:
699+
CI: true
685700
- name: Modify dependencies to use npm packages
686701
run: node scripts/prepublish.js
687702
- name: Publish to NPM

.github/workflows/prerelease-libs.yml

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

packages/openapi/LICENSE

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
MIT License (MIT)
2+
3+
Copyright (c) 2018 Norsk rikskringkasting AS (NRK)
4+
5+
Permission is hereby granted, free of charge, to any person obtaining a copy
6+
of this software and associated documentation files (the "Software"), to deal
7+
in the Software without restriction, including without limitation the rights
8+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9+
copies of the Software, and to permit persons to whom the Software is
10+
furnished to do so, subject to the following conditions:
11+
12+
The above copyright notice and this permission notice shall be included in all
13+
copies or substantial portions of the Software.
14+
15+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21+
SOFTWARE.

packages/openapi/package.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
{
22
"name": "@sofie-automation/openapi",
33
"version": "1.51.0-in-testing.1",
4-
"private": true,
54
"license": "MIT",
65
"repository": {
76
"type": "git",

0 commit comments

Comments
 (0)