Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
28 changes: 3 additions & 25 deletions .github/workflows/publish-on-merge.yml
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,8 @@ jobs:
git add package.json
git commit -m "chore: bump version to ${{ steps.version.outputs.version }} [skip ci]" || echo "No changes to commit"
git push origin prod
env:
GITHUB_TOKEN: ${{ secrets.DEVOPS_TOKEN }}

- name: Sync version back to main (prod only)
if: github.ref_name == 'prod' && github.event.inputs.dry_run != 'true'
Expand All @@ -129,35 +131,11 @@ jobs:
if git diff --quiet package.json; then
echo "No version changes needed"
else
# Create a new branch for the version sync
git checkout -b "chore/sync-version-${{ steps.version.outputs.version }}"
git config user.name "github-actions[bot]"
git config user.email "github-actions[bot]@users.noreply.github.com"
git add package.json
git commit -m "chore: sync version ${{ steps.version.outputs.version }} from prod [skip ci]"
git push origin "chore/sync-version-${{ steps.version.outputs.version }}"

# Create pull request to merge the version sync
gh pr create \
--repo de-id/agents-sdk \
--title "chore: sync version ${{ steps.version.outputs.version }} from prod" \
--body "## Version Sync

This PR syncs the version number from the production release back to the main branch.

### Changes
- Updated version from previous version to ${{ steps.version.outputs.version }}

### Related
- Production Release: [v${{ steps.version.outputs.version }}](https://github.com/d-id/agents-sdk/releases/tag/v${{ steps.version.outputs.version }})
- NPM Package: [@d-id/client-sdk@${{ steps.version.outputs.version }}](https://www.npmjs.com/package/@d-id/client-sdk/v/${{ steps.version.outputs.version }})

### Next Steps
- [ ] Review the changes
- [ ] Merge when ready" \
--base main \
--head "chore/sync-version-${{ steps.version.outputs.version }}" \
--label "dependencies"
git push origin main
fi

- name: Create GitHub Release (prod only)
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@d-id/client-sdk",
"private": false,
"version": "1.1.7",
"version": "1.1.8",
"type": "module",
"description": "d-id client sdk",
"repository": {
Expand Down