Skip to content

Commit

Permalink
ci: fix deno version bump (#480)
Browse files Browse the repository at this point in the history
  • Loading branch information
stainless-bot committed Nov 10, 2023
1 parent 78ec255 commit d0e2c77
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions build-deno
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,7 @@ set -exuo pipefail
rm -rf deno; mkdir deno
cp -rp src/* deno

PACKAGE_VERSION=$(node -p 'require("./package.json").version')

# x-release-please-start-version
cat << EOF > deno/README.md
# OpenAI Node API Library - Deno build
Expand All @@ -15,17 +14,18 @@ This is a build produced from https://github.com/openai/openai-node – please g
Usage:
\`\`\`ts
import OpenAI from "$(echo 'https://deno.land/x/openai@v4.17.1/mod.ts' | sed -E s/@\.+\\//@"$PACKAGE_VERSION"\\//)";
import OpenAI from "https://deno.land/x/openai@v4.17.2/mod.ts";
const client = new OpenAI();
\`\`\`
Note that in many Deno environments, you can also do this:
Note that in most Deno environments, you can also do this:
\`\`\`ts
import OpenAI from "npm:openai";
\`\`\`
EOF
# x-release-please-end

rm deno/_shims/auto/*-node.ts
for dir in deno/_shims deno/_shims/auto; do
Expand Down
2 changes: 1 addition & 1 deletion release-please-config.json
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,6 @@
"extra-files": [
"src/version.ts",
"README.md",
"bin/build-deno"
"build-deno"
]
}

0 comments on commit d0e2c77

Please sign in to comment.