Skip to content

Commit ecca6bc

Browse files
chore(ci): move github release logic to github app (#671)
1 parent e33a2a8 commit ecca6bc

File tree

5 files changed

+12
-73
lines changed

5 files changed

+12
-73
lines changed

.github/workflows/create-releases.yml

-64
This file was deleted.

.github/workflows/publish-deno.yml

+6-2
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,13 @@
1-
# workflow for re-running publishing to Deno in case it fails for some reason
2-
# you can run this workflow by navigating to https://www.github.com/openai/openai-node/actions/workflows/publish-deno.yml
1+
# This workflow is triggered when a GitHub release is created.
2+
# It can also be run manually to re-publish to Deno in case it failed for some reason.
3+
# You can run this workflow by navigating to https://www.github.com/openai/openai-node/actions/workflows/publish-deno.yml
34
name: Publish Deno
45
on:
56
workflow_dispatch:
67

8+
release:
9+
types: [published]
10+
711
jobs:
812
publish:
913
name: publish

.github/workflows/publish-npm.yml

+6-2
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,13 @@
1-
# workflow for re-running publishing to NPM in case it fails for some reason
2-
# you can run this workflow by navigating to https://www.github.com/openai/openai-node/actions/workflows/publish-npm.yml
1+
# This workflow is triggered when a GitHub release is created.
2+
# It can also be run manually to re-publish to NPM in case it failed for some reason.
3+
# You can run this workflow by navigating to https://www.github.com/openai/openai-node/actions/workflows/publish-npm.yml
34
name: Publish NPM
45
on:
56
workflow_dispatch:
67

8+
release:
9+
types: [published]
10+
711
jobs:
812
publish:
913
name: publish

.github/workflows/release-doctor.yml

-1
Original file line numberDiff line numberDiff line change
@@ -19,5 +19,4 @@ jobs:
1919
run: |
2020
bash ./bin/check-release-environment
2121
env:
22-
STAINLESS_API_KEY: ${{ secrets.STAINLESS_API_KEY }}
2322
NPM_TOKEN: ${{ secrets.OPENAI_NPM_TOKEN || secrets.NPM_TOKEN }}

bin/check-release-environment

-4
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,6 @@
22

33
errors=()
44

5-
if [ -z "${STAINLESS_API_KEY}" ]; then
6-
errors+=("The STAINLESS_API_KEY secret has not been set. Please contact Stainless for an API key & set it in your organization secrets on GitHub.")
7-
fi
8-
95
if [ -z "${NPM_TOKEN}" ]; then
106
errors+=("The OPENAI_NPM_TOKEN secret has not been set. Please set it in either this repository's secrets or your organization secrets")
117
fi

0 commit comments

Comments
 (0)