mirror of
https://github.com/LukeHagar/Prowlarr-TS-SDK.git
synced 2025-12-06 04:21:03 +00:00
Adding publishing
This commit is contained in:
1
.github/workflows/sdk_generation.yaml
vendored
1
.github/workflows/sdk_generation.yaml
vendored
@@ -26,4 +26,5 @@ jobs:
|
|||||||
set_version: ${{ github.event.inputs.set_version }}
|
set_version: ${{ github.event.inputs.set_version }}
|
||||||
secrets:
|
secrets:
|
||||||
github_access_token: ${{ secrets.GITHUB_TOKEN }}
|
github_access_token: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
npm_token: ${{ secrets.NPM_TOKEN }}
|
||||||
speakeasy_api_key: ${{ secrets.SPEAKEASY_API_KEY }}
|
speakeasy_api_key: ${{ secrets.SPEAKEASY_API_KEY }}
|
||||||
|
|||||||
23
.github/workflows/sdk_publish.yaml
vendored
Normal file
23
.github/workflows/sdk_publish.yaml
vendored
Normal 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 }}
|
||||||
@@ -12,6 +12,9 @@ targets:
|
|||||||
prowlarr:
|
prowlarr:
|
||||||
target: typescript
|
target: typescript
|
||||||
source: Prowlarr
|
source: Prowlarr
|
||||||
|
publish:
|
||||||
|
npm:
|
||||||
|
token: $npm_token
|
||||||
codeSamples:
|
codeSamples:
|
||||||
registry:
|
registry:
|
||||||
location: registry.speakeasyapi.dev/lukehagar/lukehagar/prowlarr-typescript-code-samples
|
location: registry.speakeasyapi.dev/lukehagar/lukehagar/prowlarr-typescript-code-samples
|
||||||
|
|||||||
Reference in New Issue
Block a user