diff --git a/.github/workflows/sdk_generation.yaml b/.github/workflows/sdk_generation.yaml index 65211f3..2ce315a 100644 --- a/.github/workflows/sdk_generation.yaml +++ b/.github/workflows/sdk_generation.yaml @@ -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 }} diff --git a/.github/workflows/sdk_publish.yaml b/.github/workflows/sdk_publish.yaml new file mode 100644 index 0000000..cfba67c --- /dev/null +++ b/.github/workflows/sdk_publish.yaml @@ -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 }} diff --git a/.speakeasy/workflow.yaml b/.speakeasy/workflow.yaml index 553052b..2266bc9 100644 --- a/.speakeasy/workflow.yaml +++ b/.speakeasy/workflow.yaml @@ -10,3 +10,6 @@ targets: statsig: target: typescript source: Statsig-OAS + publish: + npm: + token: $npm_token diff --git a/statsig-suggest.yaml b/statsig-suggest.yaml index 7d676be..2e36ca2 100644 --- a/statsig-suggest.yaml +++ b/statsig-suggest.yaml @@ -77,6 +77,7 @@ paths: content: application/json: schema: + x-speakeasy-name-override: Invalid Request type: object properties: status: @@ -100,6 +101,7 @@ paths: content: application/json: schema: + x-speakeasy-name-override: Unauthorized type: object properties: status: @@ -123,6 +125,7 @@ paths: content: application/json: schema: + x-speakeasy-name-override: Forbidden type: object properties: status: