Skip to content

Commit fc7c14a

Browse files
authored
SWI-7144 Update Deploy Workflow (#59)
* SWI-7144 Update Deploy Workflow * SWI-7144 Update Generator Version in Deploy WF
1 parent abd64cd commit fc7c14a

File tree

4 files changed

+9
-4
lines changed

4 files changed

+9
-4
lines changed

.github/workflows/deploy.yml

+7-1
Original file line numberDiff line numberDiff line change
@@ -49,10 +49,16 @@ jobs:
4949
node-version: 22
5050
registry-url: "https://registry.npmjs.org"
5151

52+
- name: Set OpenAPI Generator Version
53+
run: |
54+
OPENAPI_VERSION=$(jq .[\"generator-cli\"].version openapitools.json)
55+
echo "OPENAPI_GENERATOR_VERSION=$OPENAPI_VERSION" >> $GITHUB_ENV
56+
shell: bash
57+
5258
- name: Generate SDK with Updated Version
5359
uses: Bandwidth/[email protected]
5460
with:
55-
openapi-generator-version: 7.10.0
61+
openapi-generator-version: ${{ env.OPENAPI_GENERATOR_VERSION }}
5662
language: typescript-axios
5763
additional-properties: --additional-properties=npmVersion=$PACKAGE_VERSION
5864

configuration.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ export class Configuration {
9393
...param.baseOptions,
9494
headers: {
9595
...param.baseOptions?.headers,
96-
'User-Agent': "OpenAPI-Generator/1.0.0-dev/typescript-axios"
96+
'User-Agent': "OpenAPI-Generator/1.0.0/typescript-axios"
9797
}
9898
};
9999
this.formDataCtor = param.formDataCtor;

openapi-config.yml

-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
npmName: bandwidth-sdk
2-
npmVersion: 1.0.0-dev
32
withSeparateModelsAndApi: true
43
modelPackage: models
54
apiPackage: api

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "bandwidth-sdk",
3-
"version": "1.0.0-dev",
3+
"version": "1.0.0",
44
"description": "OpenAPI client for bandwidth-sdk",
55
"author": "OpenAPI-Generator Contributors",
66
"repository": {

0 commit comments

Comments
 (0)