Skip to content

Commit 818a783

Browse files
Update create-releases.yml
1 parent e0b675f commit 818a783

File tree

1 file changed

+3
-13
lines changed

1 file changed

+3
-13
lines changed

.github/workflows/create-releases.yml

Lines changed: 3 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,13 @@
11
name: Create releases
22
on:
3-
schedule:
4-
- cron: '0 5 * * *' # every day at 5am UTC
53
push:
64
branches:
75
- master
86

97
jobs:
108
release:
119
name: release
12-
if: github.ref == 'refs/heads/master' && github.repository == 'openai/openai-node'
1310
runs-on: ubuntu-latest
14-
environment: publish
1511
permissions:
1612
contents: read
1713
id-token: write
@@ -36,15 +32,9 @@ jobs:
3632
run: |
3733
yarn install
3834
39-
- name: Publish to NPM
40-
if: ${{ steps.release.outputs.releases_created }}
41-
run: |
42-
bash ./bin/publish-npm
43-
env:
44-
NPM_TOKEN: ${{ secrets.OPENAI_NPM_TOKEN || secrets.NPM_TOKEN }}
35+
- name: Run build
36+
run: yarn build
4537

4638
- name: Publish to JSR
47-
if: ${{ steps.release.outputs.releases_created }}
48-
run: |
49-
bash ./bin/publish-jsr
39+
run: npx jsr publish
5040

0 commit comments

Comments
 (0)