Skip to content

Commit 65aeec3

Browse files
added publish
1 parent 0e7a177 commit 65aeec3

File tree

5 files changed

+54
-0
lines changed

5 files changed

+54
-0
lines changed

.github/workflows/sdk_generation_dokploy.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,4 +31,5 @@ jobs:
3131
target: dokploy
3232
secrets:
3333
github_access_token: ${{ secrets.GITHUB_TOKEN }}
34+
npm_token: ${{ secrets.NPM_TOKEN }}
3435
speakeasy_api_key: ${{ secrets.SPEAKEASY_API_KEY }}

.github/workflows/sdk_generation_typescript.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,4 +31,5 @@ jobs:
3131
target: typescript
3232
secrets:
3333
github_access_token: ${{ secrets.GITHUB_TOKEN }}
34+
npm_token: ${{ secrets.NPM_TOKEN }}
3435
speakeasy_api_key: ${{ secrets.SPEAKEASY_API_KEY }}
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
name: Publish DOKPLOY
2+
permissions:
3+
checks: write
4+
contents: write
5+
pull-requests: write
6+
statuses: write
7+
id-token: write
8+
"on":
9+
push:
10+
branches:
11+
- main
12+
paths:
13+
- .speakeasy/gen.lock
14+
workflow_dispatch: {}
15+
jobs:
16+
publish:
17+
uses: speakeasy-api/sdk-generation-action/.github/workflows/sdk-publish.yaml@v15
18+
with:
19+
target: dokploy
20+
secrets:
21+
github_access_token: ${{ secrets.GITHUB_TOKEN }}
22+
npm_token: ${{ secrets.NPM_TOKEN }}
23+
speakeasy_api_key: ${{ secrets.SPEAKEASY_API_KEY }}
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
name: Publish TYPESCRIPT
2+
permissions:
3+
checks: write
4+
contents: write
5+
pull-requests: write
6+
statuses: write
7+
id-token: write
8+
"on":
9+
push:
10+
branches:
11+
- main
12+
paths:
13+
- .speakeasy/gen.lock
14+
workflow_dispatch: {}
15+
jobs:
16+
publish:
17+
uses: speakeasy-api/sdk-generation-action/.github/workflows/sdk-publish.yaml@v15
18+
with:
19+
target: typescript
20+
secrets:
21+
github_access_token: ${{ secrets.GITHUB_TOKEN }}
22+
npm_token: ${{ secrets.NPM_TOKEN }}
23+
speakeasy_api_key: ${{ secrets.SPEAKEASY_API_KEY }}

.speakeasy/workflow.yaml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,9 @@ targets:
1111
dokploy:
1212
target: typescript
1313
source: Dokploy API
14+
publish:
15+
npm:
16+
token: $npm_token
1417
codeSamples:
1518
registry:
1619
location: registry.speakeasyapi.dev/polariselabs/dokploy/dokploy-api-typescript-code-samples
@@ -20,6 +23,9 @@ targets:
2023
typescript:
2124
target: typescript
2225
source: Dokploy API
26+
publish:
27+
npm:
28+
token: $npm_token
2329
codeSamples:
2430
registry:
2531
location: registry.speakeasyapi.dev/polariselabs/dokploy/dokploy-api-typescript-code-samples

0 commit comments

Comments
 (0)