-
Notifications
You must be signed in to change notification settings - Fork 906
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #424 from openai/release-please--branches--master-…
…-changes--next--components--openai release: 4.15.2
- Loading branch information
Showing
6 changed files
with
27 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
{ | ||
".": "4.15.1" | ||
".": "4.15.2" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
{ | ||
"name": "openai", | ||
"version": "4.15.1", | ||
"version": "4.15.2", | ||
"description": "Client library for the OpenAI API", | ||
"author": "OpenAI <[email protected]>", | ||
"types": "dist/index.d.ts", | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
#!/usr/bin/env bash | ||
set -exuo pipefail | ||
|
||
# This script pushes the contents of the `deno`` directory to the `deno` branch, | ||
# and creates a `vx.x.x-deno` tag, so that Deno users can | ||
|
@@ -10,6 +11,7 @@ | |
# - Set the following environment variables when running this script: | ||
# - DENO_PUSH_REMOTE_URL - the remote url of the separate GitHub repo | ||
# - DENO_PUSH_BRANCH - the branch you want to push to in that repo (probably `main`) | ||
# - DENO_MAIN_BRANCH - the branch you want as the main branch in that repo (probably `main`, sometimes `master`) | ||
# - DENO_PUSH_VERSION - defaults to version in package.json | ||
# - DENO_PUSH_RELEASE_TAG - defaults to v$DENO_PUSH_VERSION-deno | ||
|
||
|
@@ -18,8 +20,6 @@ die () { | |
exit 1 | ||
} | ||
|
||
set -exuo pipefail | ||
|
||
# Allow caller to set the following environment variables, but provide defaults | ||
# if unset | ||
# : "${FOO:=bar}" sets FOO=bar unless it's set and non-empty | ||
|
@@ -28,8 +28,15 @@ set -exuo pipefail | |
|
||
: "${DENO_PUSH_VERSION:=$(node -p 'require("./package.json").version')}" | ||
: "${DENO_PUSH_BRANCH:=deno}" | ||
: "${DENO_MAIN_BRANCH:=main}" | ||
: "${DENO_PUSH_REMOTE_URL:=$(git remote get-url origin)}" | ||
: "${DENO_PUSH_RELEASE_TAG:="v$DENO_PUSH_VERSION-deno"}" | ||
: "${DENO_GIT_USER_NAME:="Stainless Bot"}" | ||
: "${DENO_GIT_USER_NAME:="[email protected]"}" | ||
if [[ $DENO_PUSH_BRANCH = "deno" ]]; then | ||
: "${DENO_PUSH_RELEASE_TAG:="v$DENO_PUSH_VERSION-deno"}" | ||
else | ||
: "${DENO_PUSH_RELEASE_TAG:="v$DENO_PUSH_VERSION"}" | ||
fi | ||
|
||
if [ ! -e deno ]; then ./build; fi | ||
|
||
|
@@ -41,7 +48,7 @@ if [ ! -e deno ]; then ./build; fi | |
|
||
cd deno | ||
rm -rf .git | ||
git init | ||
git init -b "$DENO_MAIN_BRANCH" | ||
git remote add origin "$DENO_PUSH_REMOTE_URL" | ||
if git fetch origin "$DENO_PUSH_RELEASE_TAG"; then | ||
die "Tag $DENO_PUSH_RELEASE_TAG already exists" | ||
|
@@ -56,6 +63,10 @@ else | |
# the branch doesn't exist on the remote yet | ||
git checkout -b "$DENO_PUSH_BRANCH" | ||
fi | ||
|
||
git config user.email "$DENO_GIT_USER_EMAIL" | ||
git config user.name "$DENO_GIT_USER_NAME" | ||
|
||
git add . | ||
git commit -m "chore(deno): release $DENO_PUSH_VERSION" | ||
git tag -a "$DENO_PUSH_RELEASE_TAG" -m "release $DENO_PUSH_VERSION" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
export const VERSION = '4.15.1'; // x-release-please-version | ||
export const VERSION = '4.15.2'; // x-release-please-version |