From 7e5f09220f84f9b4e40494410dc6857240899ebd Mon Sep 17 00:00:00 2001 From: Frangeris Peguero Date: Thu, 3 Oct 2024 23:09:40 -0300 Subject: [PATCH] fix: Setup git config on bump workflow (#8) Setup git config --- .github/workflows/bump.yml | 8 ++++---- .github/workflows/publish.yml | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/.github/workflows/bump.yml b/.github/workflows/bump.yml index 4bf2ac0..252b982 100644 --- a/.github/workflows/bump.yml +++ b/.github/workflows/bump.yml @@ -2,9 +2,6 @@ name: bump run-name: Bump package version on: - push: - tags: - - "*" workflow_run: workflows: ["publish"] types: @@ -16,6 +13,7 @@ jobs: runs-on: ubuntu-22.04 permissions: contents: write + steps: - name: Checkout uses: actions/checkout@v4 @@ -24,7 +22,7 @@ jobs: uses: actions/setup-node@v4 with: cache: "npm" - node-version: "22" + node-version: 22 registry-url: "https://registry.npmjs.org" - name: Get tag version @@ -38,4 +36,6 @@ jobs: - uses: stefanzweifel/git-auto-commit-action@v5 with: + branch: main + commit_author: Github Actions commit_message: "bump: Upgrade version to ${{ env.VERSION }}" diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 565b808..e17aca4 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -20,7 +20,7 @@ jobs: uses: actions/setup-node@v4 with: cache: "npm" - node-version: "22" + node-version: 22 registry-url: "https://registry.npmjs.org" - name: Get tag version