Update build-typescript-sdk.yml

This commit is contained in:
Luke Hagar
2023-04-18 12:52:58 -05:00
parent 27e2e2c70e
commit e85573584f

View File

@@ -31,23 +31,22 @@ jobs:
uses: actions/setup-node@v3
with:
node-version: "16"
- name: Build TS SDK
id: buildTS
run: |
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/
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
id: buildSDK
if: steps.buildTS.outcome == 'success'
run: |
cd sdk-ts
cd sdk-ts/plexjs
npm install
npm run build
- name: After SDK Build
if: steps.buildSDK.outcome == 'success'
run: |