File tree Expand file tree Collapse file tree 2 files changed +44
-10
lines changed Expand file tree Collapse file tree 2 files changed +44
-10
lines changed Original file line number Diff line number Diff line change
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
3
+ name : Publish Deno
4
+ on :
5
+ workflow_dispatch :
6
+
7
+ jobs :
8
+ publish :
9
+ name : publish
10
+ runs-on : ubuntu-latest
11
+ environment : publish
12
+
13
+ steps :
14
+ - uses : actions/checkout@v3
15
+
16
+ - name : Set up Node
17
+ uses : actions/setup-node@v3
18
+ with :
19
+ node-version : ' 16'
20
+
21
+ - name : Set up Deno
22
+ uses : denoland/setup-deno@v1
23
+ with :
24
+ deno-version : v1.x
25
+
26
+ - name : Install dependencies
27
+ run : |
28
+ yarn install
29
+
30
+ - name : Generate a token
31
+ id : generate_token
32
+ uses : actions/create-github-app-token@v1
33
+ with :
34
+ app-id : ${{ secrets.APP_ID }}
35
+ private-key : ${{ secrets.APP_PRIVATE_KEY }}
36
+
37
+ - name : Publish to Deno
38
+ run : |
39
+ bash ./scripts/git-publish-deno.sh
40
+ env :
41
+ GITHUB_TOKEN : ${{ steps.generate_token.outputs.token }}
42
+ DENO_PUSH_REMOTE_URL :
[email protected] :openai/openai-deno-build.git
43
+ DENO_PUSH_BRANCH : main
Original file line number Diff line number Diff line change 8
8
publish :
9
9
name : publish
10
10
runs-on : ubuntu-latest
11
+ environment : publish
11
12
12
13
steps :
13
14
- uses : actions/checkout@v3
17
18
with :
18
19
node-version : ' 16'
19
20
20
- - name : Set up Deno
21
- uses : denoland/setup-deno@v1
22
- with :
23
- deno-version : v1.x
24
-
25
21
- name : Install dependencies
26
22
run : |
27
23
yarn install
31
27
bash ./bin/publish-npm
32
28
env :
33
29
NPM_TOKEN : ${{ secrets.OPENAI_NPM_TOKEN || secrets.NPM_TOKEN }}
34
-
35
- - name : Publish to Deno
36
- run : |
37
- bash ./scripts/git-publish-deno.sh
38
- env : {}
You can’t perform that action at this time.
0 commit comments