From fc17da74852fbbe6f264e9ff48db195e1ec84200 Mon Sep 17 00:00:00 2001 From: GalT <39020298+tatarco@users.noreply.github.com> Date: Thu, 13 Jun 2024 16:24:46 +0200 Subject: [PATCH] sdk init commit --- .github/workflows/sdk_generation.yaml | 1 + .github/workflows/sdk_publish.yaml | 20 ++++++++++++++++++++ .speakeasy/workflow.yaml | 3 +++ 3 files changed, 24 insertions(+) create mode 100644 .github/workflows/sdk_publish.yaml 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