mirror of
https://github.com/LukeHagar/plex-api-spec.git
synced 2025-12-06 04:20:40 +00:00
Update build-typescript-sdk.yml
This commit is contained in:
9
.github/workflows/build-typescript-sdk.yml
vendored
9
.github/workflows/build-typescript-sdk.yml
vendored
@@ -31,23 +31,22 @@ jobs:
|
|||||||
uses: actions/setup-node@v3
|
uses: actions/setup-node@v3
|
||||||
with:
|
with:
|
||||||
node-version: "16"
|
node-version: "16"
|
||||||
|
|
||||||
- name: Build TS SDK
|
- name: Build TS SDK
|
||||||
id: buildTS
|
id: buildTS
|
||||||
run: |
|
run: |
|
||||||
cd sdk-ts
|
cd sdk-ts
|
||||||
wget https://repo1.maven.org/maven2/org/openapitools/openapi-generator-cli/6.3.0/openapi-generator-cli-6.3.0.jar -O openapi-generator-cli.jar
|
|
||||||
rm -rf plexjs/
|
rm -rf plexjs/
|
||||||
java -jar openapi-generator-cli.jar generate -i ../referenced/plex-api-spec.yaml -g typescript-axios -o plexjs/ --global-property skipFormModel=false --config config.yaml
|
java -jar openapi-generator-cli.jar generate -i ../referenced/plex-api-spec.yaml -g typescript-axios -o plexjs/ --global-property skipFormModel=false --config config.yaml
|
||||||
|
|
||||||
- name: Run npm install and build Typescript SDK
|
- name: Run npm install and build Typescript SDK
|
||||||
id: buildSDK
|
id: buildSDK
|
||||||
if: steps.buildTS.outcome == 'success'
|
if: steps.buildTS.outcome == 'success'
|
||||||
run: |
|
run: |
|
||||||
cd sdk-ts
|
cd sdk-ts/plexjs
|
||||||
npm install
|
npm install
|
||||||
npm run build
|
npm run build
|
||||||
|
|
||||||
- name: After SDK Build
|
- name: After SDK Build
|
||||||
if: steps.buildSDK.outcome == 'success'
|
if: steps.buildSDK.outcome == 'success'
|
||||||
run: |
|
run: |
|
||||||
|
|||||||
Reference in New Issue
Block a user