From 448b71e3440ea257e4e54c310a6206fa8d49a219 Mon Sep 17 00:00:00 2001 From: dor-eitan <164745144+dor-eitan@users.noreply.github.com> Date: Thu, 7 Aug 2025 10:40:59 +0300 Subject: [PATCH] Merge pull request #179 from de-id/publish-sdk-workflow sync version to main via PR --- .github/workflows/publish-on-merge.yml | 27 +++++++++++++++++++++++++- package.json | 2 +- 2 files changed, 27 insertions(+), 2 deletions(-) diff --git a/.github/workflows/publish-on-merge.yml b/.github/workflows/publish-on-merge.yml index a60990d3..73ae4f5d 100644 --- a/.github/workflows/publish-on-merge.yml +++ b/.github/workflows/publish-on-merge.yml @@ -127,11 +127,36 @@ 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 main + 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" \ + --label "automated" fi - name: Create GitHub Release (prod only) diff --git a/package.json b/package.json index 6f4f26bc..2548c25c 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "@d-id/client-sdk", "private": false, - "version": "1.1.1", + "version": "1.1.2", "type": "module", "description": "d-id client sdk", "repository": {