diff --git a/.github/workflows/sdk_generation.yaml b/.github/workflows/sdk_generation.yaml index 7525d1f0..485a52a0 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 00000000..e19b279e --- /dev/null +++ b/.github/workflows/sdk_publish.yaml @@ -0,0 +1,15 @@ +name: Publish +"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/gen.yaml b/.speakeasy/gen.yaml index c528f781..5c986fa3 100755 --- a/.speakeasy/gen.yaml +++ b/.speakeasy/gen.yaml @@ -12,7 +12,7 @@ generation: auth: oAuth2ClientCredentialsEnabled: true typescript: - version: 0.1.0 + version: 2.0.0 additionalDependencies: dependencies: {} devDependencies: diff --git a/.speakeasy/workflow.yaml b/.speakeasy/workflow.yaml index a65c99bc..76f4fd74 100644 --- a/.speakeasy/workflow.yaml +++ b/.speakeasy/workflow.yaml @@ -10,3 +10,6 @@ targets: first-target: target: typescript source: openapi + publish: + npm: + token: $npm_token diff --git a/README.md b/README.md index febd8638..8c5809d9 100644 --- a/README.md +++ b/README.md @@ -18,13 +18,13 @@ api_key_header="ShippoToken shippo_test_595d9cb0c0e14497bf07e75ecfec6c6d" ### NPM ```bash -npm add https://github.com/goshippo/shippo-javascript-sdk +npm add shippo ``` ### Yarn ```bash -yarn add https://github.com/goshippo/shippo-javascript-sdk +yarn add shippo ```