diff --git a/.github/workflows/sdk_generation.yaml b/.github/workflows/sdk_generation.yaml index 7525d1f..485a52a 100644 --- a/.github/workflows/sdk_generation.yaml +++ b/.github/workflows/sdk_generation.yaml @@ -22,4 +22,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 3e59232..5a4a88f 100644 --- a/.speakeasy/workflow.yaml +++ b/.speakeasy/workflow.yaml @@ -12,3 +12,6 @@ targets: my-first-target: target: typescript source: json-development + publish: + npm: + token: $npm_token