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
|
||||
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: |
|
||||
|
||||
Reference in New Issue
Block a user