Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 19469f2

Browse files
authoredNov 4, 2023
fix: improve deno releases (#425)
1 parent aac7f6d commit 19469f2

File tree

2 files changed

+21
-2
lines changed

2 files changed

+21
-2
lines changed
 

‎build-deno

+20-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,26 @@
33
set -exuo pipefail
44

55
rm -rf deno; mkdir deno
6-
cp -rp src/* README.md deno
6+
cp -rp src/* deno
7+
8+
cat << EOF > deno/README.md
9+
# OpenAI Node API Library - Deno build
10+
11+
This is a build produced from openai/openai-node - please go there to read the source, file issues, etc.
12+
13+
Installation:
14+
15+
\`\`\`
16+
import OpenAI from "https://deno.land/x/openai";
17+
\`\`\`
18+
19+
Note that in many Deno environments, you can also do this:
20+
21+
\`\`\`
22+
import OpenAI from "npm:openai";
23+
\`\`\`
24+
EOF
25+
726
rm deno/_shims/auto/*-node.ts
827
for dir in deno/_shims deno/_shims/auto; do
928
rm "${dir}"/*.{d.ts,js,mjs}

‎scripts/git-publish-deno.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ die () {
3131
: "${DENO_MAIN_BRANCH:=main}"
3232
: "${DENO_PUSH_REMOTE_URL:=$(git remote get-url origin)}"
3333
: "${DENO_GIT_USER_NAME:="Stainless Bot"}"
34-
: "${DENO_GIT_USER_NAME:="bot@stainlessapi.com"}"
34+
: "${DENO_GIT_USER_EMAIL:="bot@stainlessapi.com"}"
3535
if [[ $DENO_PUSH_BRANCH = "deno" ]]; then
3636
: "${DENO_PUSH_RELEASE_TAG:="v$DENO_PUSH_VERSION-deno"}"
3737
else

0 commit comments

Comments
 (0)
Please sign in to comment.