mirror of
https://github.com/LukeHagar/plexjs.git
synced 2025-12-06 12:37:46 +00:00
separated packages
This commit is contained in:
22
.github/workflows/bump_version.yml
vendored
22
.github/workflows/bump_version.yml
vendored
@@ -53,13 +53,29 @@ jobs:
|
|||||||
- name: Update config files with new version
|
- name: Update config files with new version
|
||||||
id: updateVersion
|
id: updateVersion
|
||||||
run: |
|
run: |
|
||||||
yq -i '.npmVersion = "${{ github.event.inputs.version }}"' config.yaml
|
yq -i '.npmVersion = "${{ github.event.inputs.version }}"' sdk-resources/plexjs-config.yaml
|
||||||
|
yq -i '.npmVersion = "${{ github.event.inputs.version }}"' sdk-resources/plextv-config.yaml
|
||||||
|
|
||||||
|
## Update package.json file with new version
|
||||||
|
- name: Update package.json version
|
||||||
|
id: updatePackageJsonVersion
|
||||||
|
if: steps.updateVersion.outcome == 'success'
|
||||||
|
run: |
|
||||||
|
LATEST_TAG=$(git describe --tags `git rev-list --tags --max-count=1`)
|
||||||
|
cd plexjs
|
||||||
|
jq '.version = "${{ github.event.inputs.version }}"' package.json > package.json.tmp && mv package.json.tmp package.json
|
||||||
|
|
||||||
- name: Build TS SDK
|
- name: Build TS SDK
|
||||||
id: buildTS
|
id: buildTS
|
||||||
run: |
|
run: |
|
||||||
rm -rf plexjs/
|
rm -rf plexjs/pms
|
||||||
java -jar openapi-generator-cli.jar generate -i api-specs/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 api-specs/pms/pms-spec.yaml -g typescript-axios -o plexjs/pms --global-property skipFormModel=false --config sdk-resources/pms-config.yaml
|
||||||
|
|
||||||
|
- name: Build TS SDK
|
||||||
|
id: buildTS
|
||||||
|
run: |
|
||||||
|
rm -rf plexjs/plextv
|
||||||
|
java -jar openapi-generator-cli.jar generate -i api-specs/plextv/plextv-spec.yaml -g typescript-axios -o plexjs/plextv --global-property skipFormModel=false --config sdk-resources/plextv-config.yaml
|
||||||
|
|
||||||
- name: After SDK Build
|
- name: After SDK Build
|
||||||
id: buildSDK
|
id: buildSDK
|
||||||
|
|||||||
@@ -12,7 +12,6 @@
|
|||||||
* Do not edit the class manually.
|
* Do not edit the class manually.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
export * from "./plextv/api";
|
||||||
export * from "./api";
|
export * from "./pms/api";
|
||||||
export {Configuration, ConfigurationParameters} from "./configuration";
|
export { Configuration, ConfigurationParameters } from "./configuration";
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user