diff --git a/.github/workflows/create-releases.yml b/.github/workflows/create-releases.yml index 2a5f9d49f..75e63d626 100644 --- a/.github/workflows/create-releases.yml +++ b/.github/workflows/create-releases.yml @@ -26,6 +26,12 @@ jobs: with: node-version: '16' + - name: Set up Deno + if: ${{ steps.release.outputs.releases_created }} + uses: denoland/setup-deno@v1 + with: + deno-version: v1.x + - name: Install dependencies if: ${{ steps.release.outputs.releases_created }} run: | @@ -37,3 +43,9 @@ jobs: bash ./bin/publish-npm env: NPM_TOKEN: ${{ secrets.OPENAI_NPM_TOKEN || secrets.NPM_TOKEN }} + + - name: Publish to Deno + if: ${{ steps.release.outputs.releases_created }} + run: | + bash ./scripts/git-publish-deno.sh + env: {} diff --git a/.github/workflows/publish-npm.yml b/.github/workflows/publish-npm.yml index 326067066..15f7d5af3 100644 --- a/.github/workflows/publish-npm.yml +++ b/.github/workflows/publish-npm.yml @@ -17,6 +17,11 @@ jobs: with: node-version: '16' + - name: Set up Deno + uses: denoland/setup-deno@v1 + with: + deno-version: v1.x + - name: Install dependencies run: | yarn install @@ -26,3 +31,8 @@ jobs: bash ./bin/publish-npm env: NPM_TOKEN: ${{ secrets.OPENAI_NPM_TOKEN || secrets.NPM_TOKEN }} + + - name: Publish to Deno + run: | + bash ./scripts/git-publish-deno.sh + env: {} diff --git a/.gitignore b/.gitignore index 314b24627..58b3944a1 100644 --- a/.gitignore +++ b/.gitignore @@ -4,3 +4,4 @@ codegen.log dist /deno /*.tgz +.idea/ diff --git a/.release-please-manifest.json b/.release-please-manifest.json index 898c7258c..666e52c6f 100644 --- a/.release-please-manifest.json +++ b/.release-please-manifest.json @@ -1,3 +1,3 @@ { - ".": "4.14.0" + ".": "4.14.1" } diff --git a/CHANGELOG.md b/CHANGELOG.md index 46e2b5e87..e517e9327 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,19 @@ # Changelog +## 4.14.1 (2023-10-27) + +Full Changelog: [v4.14.0...v4.14.1](https://github.com/openai/openai-node/compare/v4.14.0...v4.14.1) + +### Bug Fixes + +* deploy deno in a github workflow instead of postpublish step ([#405](https://github.com/openai/openai-node/issues/405)) ([3a6dba0](https://github.com/openai/openai-node/commit/3a6dba074258274bffcfe3a4260ca1b95bcd6bdc)) +* typo in build script ([#403](https://github.com/openai/openai-node/issues/403)) ([76c5c96](https://github.com/openai/openai-node/commit/76c5c96a359f750f58ea38b5d32365db7e34409a)) + + +### Chores + +* **internal:** update gitignore ([#406](https://github.com/openai/openai-node/issues/406)) ([986b0bb](https://github.com/openai/openai-node/commit/986b0bbac9f5ca43a0df6f29f2a468dd4223e053)) + ## 4.14.0 (2023-10-25) Full Changelog: [v4.13.0...v4.14.0](https://github.com/openai/openai-node/compare/v4.13.0...v4.14.0) diff --git a/README.md b/README.md index c54a8df75..d96df389e 100644 --- a/README.md +++ b/README.md @@ -21,7 +21,7 @@ You can import in Deno via: ```ts -import OpenAI from 'https://raw.githubusercontent.com/openai/openai-node/v4.13.0-deno/mod.ts'; +import OpenAI from 'https://raw.githubusercontent.com/openai/openai-node/v4.14.0-deno/mod.ts'; ``` diff --git a/package.json b/package.json index c4e9f1f8e..687013f70 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "openai", - "version": "4.14.0", + "version": "4.14.1", "description": "Client library for the OpenAI API", "author": "OpenAI ", "types": "dist/index.d.ts", @@ -83,8 +83,7 @@ "format": "prettier --write --cache --cache-strategy metadata . !dist", "tsn": "ts-node -r tsconfig-paths/register", "lint": "eslint --ext ts,js .", - "fix": "eslint --fix --ext ts,js .", - "postpublish": "bash scripts/git-publish-deno.sh" + "fix": "eslint --fix --ext ts,js ." }, "dependencies": { "@types/node": "^18.11.18", diff --git a/src/version.ts b/src/version.ts index ddc4bbe90..502ca7989 100644 --- a/src/version.ts +++ b/src/version.ts @@ -1 +1 @@ -export const VERSION = '4.14.0'; // x-release-please-version +export const VERSION = '4.14.1'; // x-release-please-version