From f134c7d29932e6c3e318cdce7f50dbfc946bd6d7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9s=20Zorro?= Date: Mon, 11 Mar 2024 17:52:39 -0500 Subject: [PATCH] ci(general): commit bump version --- .github/workflows/release.yaml | 23 +++++++++++++++++++---- 1 file changed, 19 insertions(+), 4 deletions(-) diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index edd3942..de5d332 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -26,6 +26,24 @@ jobs: - name: Bump version run: scripts/bump-version.sh if: startsWith(github.ref, 'refs/tags/') + - name: Update package.json + uses: stefanzweifel/git-auto-commit-action@v5 + if: startsWith(github.ref, 'refs/tags/') + with: + commit_message: "[skip-ci]: Bump version" + commit_options: '--no-verify --signoff' + branch: ${{ contains(github.ref, '-beta') && 'develop' || 'main' }} + file_pattern: 'package.json' + repository: . + commit_user_name: GitHub Actions Bot # defaults to "github-actions[bot]" + status_options: '--untracked-files=no' + # add_options: '-u' + push_options: '--force' + skip_dirty_check: true + skip_fetch: true + skip_checkout: true + disable_globbing: true + create_branch: false build: needs: bumpVersion name: build-${{matrix.name}} @@ -104,9 +122,6 @@ jobs: if: startsWith(github.ref, 'refs/tags/') with: path: ./dist - - name: Update install.sh file - run: scripts/release.sh - if: startsWith(github.ref, 'refs/tags/') - name: Create Release Draft uses: softprops/action-gh-release@v1 if: startsWith(github.ref, 'refs/tags/') @@ -124,7 +139,7 @@ jobs: commit_message: "[skip-ci]: Updated install script" commit_options: '--no-verify --signoff' branch: ${{ contains(github.ref, '-beta') && 'develop' || 'main' }} - file_pattern: 'docs/** package.json' + file_pattern: 'docs/**' repository: . commit_user_name: GitHub Actions Bot # defaults to "github-actions[bot]" status_options: '--untracked-files=no'