diff --git a/.github/workflows/publish-on-merge.yml b/.github/workflows/publish-on-merge.yml index 8fa2dd65..10a111aa 100644 --- a/.github/workflows/publish-on-merge.yml +++ b/.github/workflows/publish-on-merge.yml @@ -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' @@ -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) diff --git a/package.json b/package.json index a3803e6d..de483a50 100644 --- a/package.json +++ b/package.json @@ -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": {