feat: release all in one npm package #1
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Release NPM Package | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
branches: | |
- main | |
permissions: | |
contents: write | |
jobs: | |
build: | |
runs-on: ubuntu-22.04 | |
steps: | |
- uses: actions/setup-node@v3 | |
with: | |
node-version: 16 | |
registry-url: https://registry.npmjs.org/ | |
- name: Generate SDK | |
run: | | |
npm cache clean --force | |
npm install @openapitools/openapi-generator-cli -g | |
- name: Build Installer SDK | |
run: | | |
openapi-generator-cli generate -g typescript-axios -i ./casaos-installer/installer/openapi.yaml -o ./zimaos-openapi/installer | |
openapi-generator-cli generate -g typescript-axios -i ./zimaos-local-storage/local_storage/openapi.yaml -o ./zimaos-openapi/localstorage/v2 | |
openapi-generator-cli generate -g typescript-axios -i ./zimaos-local-storage/local_storage/openapi_v1.yaml -o ./zimaos-openapi/localstorage/v1 | |