Adding publishing

This commit is contained in:
Luke Hagar
2025-05-19 09:19:02 -05:00
parent aff78fa081
commit e8364cb9f8
3 changed files with 27 additions and 0 deletions

View File

@@ -26,4 +26,5 @@ jobs:
set_version: ${{ github.event.inputs.set_version }}
secrets:
github_access_token: ${{ secrets.GITHUB_TOKEN }}
npm_token: ${{ secrets.NPM_TOKEN }}
speakeasy_api_key: ${{ secrets.SPEAKEASY_API_KEY }}

23
.github/workflows/sdk_publish.yaml vendored Normal file
View File

@@ -0,0 +1,23 @@
name: Publish
permissions:
checks: write
contents: write
pull-requests: write
statuses: write
id-token: write
"on":
push:
branches:
- main
paths:
- .speakeasy/gen.lock
workflow_dispatch: {}
jobs:
publish:
uses: speakeasy-api/sdk-generation-action/.github/workflows/sdk-publish.yaml@v15
with:
target: prowlarr
secrets:
github_access_token: ${{ secrets.GITHUB_TOKEN }}
npm_token: ${{ secrets.NPM_TOKEN }}
speakeasy_api_key: ${{ secrets.SPEAKEASY_API_KEY }}

View File

@@ -12,6 +12,9 @@ targets:
prowlarr:
target: typescript
source: Prowlarr
publish:
npm:
token: $npm_token
codeSamples:
registry:
location: registry.speakeasyapi.dev/lukehagar/lukehagar/prowlarr-typescript-code-samples