Skip to content

Commit 1e4c1fc

Browse files
committed
chore: prep migration
1 parent 0fcc52c commit 1e4c1fc

File tree

3 files changed

+36
-31
lines changed

3 files changed

+36
-31
lines changed

.github/workflows/generation.yml

Lines changed: 19 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,21 @@
11
name: Generate
2-
3-
on:
4-
workflow_dispatch:
5-
inputs:
6-
force:
7-
description: "Force the generation of the SDKs"
8-
type: boolean
9-
default: false
10-
schedule:
11-
- cron: 0 0 * * *
12-
2+
"on":
3+
workflow_dispatch:
4+
inputs:
5+
force:
6+
description: Force the generation of the SDKs
7+
type: boolean
8+
default: false
9+
schedule:
10+
- cron: 0 0 * * *
1311
jobs:
14-
generate:
15-
uses: speakeasy-api/sdk-generation-action/.github/workflows/sdk-generation.yaml@v14
16-
with:
17-
speakeasy_version: latest
18-
openapi_doc_location: https://docs.speakeasyapi.dev/openapi.yaml
19-
languages: |-
20-
- typescript
21-
publish_typescript: true
22-
force: ${{ github.event.inputs.force }}
23-
secrets:
24-
github_access_token: ${{ secrets.GITHUB_TOKEN }}
25-
npm_token: ${{ secrets.NPM_TOKEN }}
26-
speakeasy_api_key: ${{ secrets.SPEAKEASY_API_KEY }}
12+
generate:
13+
uses: speakeasy-api/sdk-generation-action/.github/workflows/workflow-executor.yaml@v15
14+
with:
15+
force: ${{ github.event.inputs.force }}
16+
mode: pr
17+
speakeasy_version: latest
18+
secrets:
19+
github_access_token: ${{ secrets.GITHUB_TOKEN }}
20+
npm_token: ${{ secrets.NPM_TOKEN }}
21+
speakeasy_api_key: ${{ secrets.SPEAKEASY_API_KEY }}

.speakeasy/workflow.yaml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
workflowVersion: 1.0.0
2+
sources:
3+
my-source:
4+
inputs:
5+
- location: https://speakeasy.com/openapi.yaml
6+
targets:
7+
speakeasy-client-sdk-typescript:
8+
target: typescript
9+
source: my-source
10+
publish:
11+
npm:
12+
token: $NPM_TOKEN

gen.yaml

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -4,16 +4,14 @@ generation:
44
usageSnippets:
55
optionalPropertyRendering: withExample
66
fixes:
7-
nameResolutionDec2023: false
8-
parameterOrderingFeb2024: false
9-
requestResponseComponentNamesFeb2024: false
7+
nameResolutionDec2023: true
8+
parameterOrderingFeb2024: true
9+
requestResponseComponentNamesFeb2024: true
1010
auth:
1111
oAuth2ClientCredentialsEnabled: false
1212
typescript:
13-
version: 3.3.15
13+
version: 4.0.0
1414
author: Speakeasy
15-
clientServerStatusCodesAsErrors: false
16-
flattenGlobalSecurity: false
1715
imports:
1816
option: openapi
1917
paths:
@@ -26,4 +24,4 @@ typescript:
2624
maxMethodParams: 0
2725
outputModelSuffix: output
2826
packageName: '@speakeasy-api/speakeasy-client-sdk-typescript'
29-
templateVersion: v1
27+
templateVersion: v2

0 commit comments

Comments
 (0)