Skip to content

Commit

Permalink
feat: setup publishing
Browse files Browse the repository at this point in the history
  • Loading branch information
simplesagar committed Aug 13, 2024
1 parent 6d71a02 commit 6fe21f5
Show file tree
Hide file tree
Showing 4 changed files with 27 additions and 0 deletions.
1 change: 1 addition & 0 deletions .github/workflows/sdk_generation.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -26,4 +26,5 @@ jobs:
speakeasy_version: latest
secrets:
github_access_token: ${{ secrets.GITHUB_TOKEN }}
npm_token: ${{ secrets.NPM_TOKEN }}
speakeasy_api_key: ${{ secrets.SPEAKEASY_API_KEY }}
20 changes: 20 additions & 0 deletions .github/workflows/sdk_publish.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
name: Publish
permissions:
checks: write
contents: write
pull-requests: write
statuses: write
"on":
push:
branches:
- main
paths:
- RELEASES.md
- '*/RELEASES.md'
jobs:
publish:
uses: speakeasy-api/sdk-generation-action/.github/workflows/sdk-publish.yaml@v15
secrets:
github_access_token: ${{ secrets.GITHUB_TOKEN }}
npm_token: ${{ secrets.NPM_TOKEN }}
speakeasy_api_key: ${{ secrets.SPEAKEASY_API_KEY }}
3 changes: 3 additions & 0 deletions .speakeasy/workflow.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,3 +10,6 @@ targets:
statsig:
target: typescript
source: Statsig-OAS
publish:
npm:
token: $npm_token
3 changes: 3 additions & 0 deletions statsig-suggest.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,7 @@ paths:
content:
application/json:
schema:
x-speakeasy-name-override: Invalid Request
type: object
properties:
status:
Expand All @@ -100,6 +101,7 @@ paths:
content:
application/json:
schema:
x-speakeasy-name-override: Unauthorized
type: object
properties:
status:
Expand All @@ -123,6 +125,7 @@ paths:
content:
application/json:
schema:
x-speakeasy-name-override: Forbidden
type: object
properties:
status:
Expand Down

0 comments on commit 6fe21f5

Please sign in to comment.