Skip to content

Commit

Permalink
fix: Setup git config on bump workflow (#8)
Browse files Browse the repository at this point in the history
Setup git config
  • Loading branch information
frangeris authored Oct 4, 2024
1 parent ae6f50b commit 7e5f092
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/bump.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,6 @@ name: bump
run-name: Bump package version

on:
push:
tags:
- "*"
workflow_run:
workflows: ["publish"]
types:
Expand All @@ -16,6 +13,7 @@ jobs:
runs-on: ubuntu-22.04
permissions:
contents: write

steps:
- name: Checkout
uses: actions/checkout@v4
Expand All @@ -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
Expand All @@ -38,4 +36,6 @@ jobs:

- uses: stefanzweifel/git-auto-commit-action@v5
with:
branch: main
commit_author: Github Actions <[email protected]>
commit_message: "bump: Upgrade version to ${{ env.VERSION }}"
2 changes: 1 addition & 1 deletion .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 7e5f092

Please sign in to comment.