forked from openai/openai-node
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ci: fix deno version bump (openai#480)
- Loading branch information
1 parent
78ec255
commit d0e2c77
Showing
2 changed files
with
5 additions
and
5 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 |
---|---|---|
|
@@ -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 | ||
|
@@ -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/[email protected].1/mod.ts' | sed -E s/@\.+\\//@"$PACKAGE_VERSION"\\//)"; | ||
import OpenAI from "https://deno.land/x/[email protected].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 | ||
|
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 |
---|---|---|
|
@@ -61,6 +61,6 @@ | |
"extra-files": [ | ||
"src/version.ts", | ||
"README.md", | ||
"bin/build-deno" | ||
"build-deno" | ||
] | ||
} |