diff --git a/.github/workflows/create-releases.yml b/.github/workflows/create-releases.yml index 75e63d626..0378cb827 100644 --- a/.github/workflows/create-releases.yml +++ b/.github/workflows/create-releases.yml @@ -20,6 +20,15 @@ jobs: repo: ${{ github.event.repository.full_name }} stainless-api-key: ${{ secrets.STAINLESS_API_KEY }} + - name: Generate a token + id: generate_token + uses: actions/create-github-app-token@v1 + with: + app-id: ${{ secrets.APP_ID }} + private-key: ${{ secrets.APP_PRIVATE_KEY }} + owner: 'openai' + repositories: 'openai-node,openai-deno-build' + - name: Set up Node if: ${{ steps.release.outputs.releases_created }} uses: actions/setup-node@v3 @@ -48,4 +57,6 @@ jobs: if: ${{ steps.release.outputs.releases_created }} run: | bash ./scripts/git-publish-deno.sh - env: {} + env: + DENO_PUSH_REMOTE_URL: https://username:${{ steps.generate_token.outputs.token }}@github.com/openai/openai-deno-build.git + DENO_PUSH_BRANCH: main diff --git a/.github/workflows/publish-deno.yml b/.github/workflows/publish-deno.yml index 1b264b39e..b14b3fcc8 100644 --- a/.github/workflows/publish-deno.yml +++ b/.github/workflows/publish-deno.yml @@ -11,6 +11,8 @@ jobs: environment: publish steps: + - uses: actions/checkout@v3 + - name: Generate a token id: generate_token uses: actions/create-github-app-token@v1 @@ -20,8 +22,6 @@ jobs: owner: 'openai' repositories: 'openai-node,openai-deno-build' - - uses: actions/checkout@v3 - - name: Set up Node uses: actions/setup-node@v3 with: diff --git a/.release-please-manifest.json b/.release-please-manifest.json index bdabf6962..07aa952c2 100644 --- a/.release-please-manifest.json +++ b/.release-please-manifest.json @@ -1,3 +1,3 @@ { - ".": "4.19.0" + ".": "4.19.1" } diff --git a/CHANGELOG.md b/CHANGELOG.md index 5e1a0dd4c..d88ec3f5c 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,9 @@ # Changelog +## 4.19.1 (2023-11-20) + +Full Changelog: [v4.19.0...v4.19.1](https://github.com/openai/openai-node/compare/v4.19.0...v4.19.1) + ## 4.19.0 (2023-11-15) Full Changelog: [v4.18.0...v4.19.0](https://github.com/openai/openai-node/compare/v4.18.0...v4.19.0) diff --git a/README.md b/README.md index 45d7ba986..1434126e7 100644 --- a/README.md +++ b/README.md @@ -21,7 +21,7 @@ You can import in Deno via: ```ts -import OpenAI from 'https://deno.land/x/openai@v4.19.0/mod.ts'; +import OpenAI from 'https://deno.land/x/openai@v4.19.1/mod.ts'; ``` diff --git a/build-deno b/build-deno index db5036e82..8f91b48fe 100755 --- a/build-deno +++ b/build-deno @@ -14,7 +14,7 @@ This is a build produced from https://github.com/openai/openai-node – please g Usage: \`\`\`ts -import OpenAI from "https://deno.land/x/openai@v4.19.0/mod.ts"; +import OpenAI from "https://deno.land/x/openai@v4.19.1/mod.ts"; const client = new OpenAI(); \`\`\` diff --git a/package.json b/package.json index 1cf242179..6600364aa 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "openai", - "version": "4.19.0", + "version": "4.19.1", "description": "Client library for the OpenAI API", "author": "OpenAI ", "types": "dist/index.d.ts", diff --git a/src/version.ts b/src/version.ts index afe91b0bb..5673c14ed 100644 --- a/src/version.ts +++ b/src/version.ts @@ -1 +1 @@ -export const VERSION = '4.19.0'; // x-release-please-version +export const VERSION = '4.19.1'; // x-release-please-version