From b97b7ba7f03297499fb2876f6d8f882b68f6a43e Mon Sep 17 00:00:00 2001 From: dor-eitan <164745144+dor-eitan@users.noreply.github.com> Date: Sun, 5 Oct 2025 15:08:41 +0300 Subject: [PATCH] Merge pull request #214 from de-id/fix-deploy fix deploy workflow --- .github/workflows/publish-on-merge.yml | 14 +++++++------- package.json | 2 +- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/.github/workflows/publish-on-merge.yml b/.github/workflows/publish-on-merge.yml index 3912f10b..5faddeab 100644 --- a/.github/workflows/publish-on-merge.yml +++ b/.github/workflows/publish-on-merge.yml @@ -6,7 +6,7 @@ on: workflow_dispatch: inputs: dry_run: - description: 'Run in dry-run mode (no actual publishing)' + description: "Run in dry-run mode (no actual publishing)" required: false default: false type: boolean @@ -21,14 +21,14 @@ jobs: - uses: actions/checkout@v4 with: fetch-depth: 0 - token: ${{ secrets.GITHUB_TOKEN }} + token: ${{ secrets.PAT_TOKEN }} - name: Setup Node.js uses: actions/setup-node@v4 with: node-version: 20 - registry-url: 'https://registry.npmjs.org' - cache: 'yarn' + registry-url: "https://registry.npmjs.org" + cache: "yarn" - name: Install dependencies run: yarn install --frozen-lockfile @@ -102,14 +102,14 @@ jobs: - name: Commit version bump (prod only) if: github.ref_name == 'prod' && github.event.inputs.dry_run != 'true' + env: + GITHUB_TOKEN: ${{ secrets.PAT_TOKEN }} run: | 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: bump version to ${{ steps.version.outputs.version }} [skip ci]" || echo "No changes to commit" - git push origin prod - env: - GITHUB_TOKEN: ${{ secrets.PAT_TOKEN }} + git push https://x-access-token:${{ secrets.PAT_TOKEN }}@github.com/${{ github.repository }}.git prod - name: Sync version back to main (prod only) if: github.ref_name == 'prod' && github.event.inputs.dry_run != 'true' diff --git a/package.json b/package.json index ff77d17e..3466184d 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "@d-id/client-sdk", "private": false, - "version": "1.1.11", + "version": "1.1.12", "type": "module", "description": "d-id client sdk", "repository": {