Skip to content

Commit 18ceabc

Browse files
authored
chore(ci): update metadata.ts files when releasing a new version. Fix #20 (#241)
* Fix #20 Update metadata.ts files when releasing a new version * Update .github/workflows/release.yml
1 parent 5a6314a commit 18ceabc

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

.github/workflows/release.yml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,19 @@ jobs:
5252
NPM_CONFIG_PROVENANCE: true
5353
NPM_CONFIG_ACCESS: public
5454

55+
- name: Push metadata changes
56+
run: |
57+
files="packages/agents-core/src/metadata.ts packages/agents-extensions/src/metadata.ts packages/agents-openai/src/metadata.ts packages/agents-realtime/src/metadata.ts packages/agents/src/metadata.ts"
58+
if git diff --quiet -- $files; then
59+
echo "No metadata changes to push"
60+
else
61+
git config user.name "github-actions[bot]"
62+
git config user.email "github-actions[bot]@users.noreply.github.com"
63+
git add $files
64+
git commit -m "chore: sync metadata files"
65+
git push origin HEAD:main
66+
fi
67+
5568
- name: Tag release
5669
# currently this step does not work due to https://github.com/openai/openai-agents-js/pull/232
5770
if: steps.changesets.outputs.published == 'true'

0 commit comments

Comments
 (0)