Skip to content

Commit 9062641

Browse files
authored
Update SDK generation and publishing workflows (#60)
* Update SDK generation and publishing workflows * update spec location
1 parent d549429 commit 9062641

File tree

3 files changed

+21
-5
lines changed

3 files changed

+21
-5
lines changed
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,10 @@
11
name: Generate
2-
32
permissions:
43
checks: write
54
contents: write
65
pull-requests: write
76
statuses: write
8-
9-
on:
7+
"on":
108
workflow_dispatch:
119
inputs:
1210
force:
@@ -15,7 +13,6 @@ on:
1513
default: false
1614
schedule:
1715
- cron: 0 0 * * *
18-
1916
jobs:
2017
generate:
2118
uses: speakeasy-api/sdk-generation-action/.github/workflows/workflow-executor.yaml@v15
@@ -25,4 +22,5 @@ jobs:
2522
speakeasy_version: latest
2623
secrets:
2724
github_access_token: ${{ secrets.GITHUB_TOKEN }}
25+
npm_token: ${{ secrets.NPM_TOKEN }}
2826
speakeasy_api_key: ${{ secrets.SPEAKEASY_API_KEY }}

.github/workflows/sdk_publish.yaml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
name: Publish
2+
"on":
3+
push:
4+
branches:
5+
- main
6+
paths:
7+
- RELEASES.md
8+
- '*/RELEASES.md'
9+
jobs:
10+
publish:
11+
uses: speakeasy-api/sdk-generation-action/.github/workflows/sdk-publish.yaml@v15
12+
secrets:
13+
github_access_token: ${{ secrets.GITHUB_TOKEN }}
14+
npm_token: ${{ secrets.NPM_TOKEN }}
15+
speakeasy_api_key: ${{ secrets.SPEAKEASY_API_KEY }}

.speakeasy/workflow.yaml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,11 @@ workflowVersion: 1.0.0
22
sources:
33
my-first-source:
44
inputs:
5-
- location: https://api.dub.sh
5+
- location: https://api.dub.co
66
targets:
77
my-first-target:
88
target: typescript
99
source: my-first-source
10+
publish:
11+
npm:
12+
token: $npm_token

0 commit comments

Comments
 (0)