Skip to content

Commit

Permalink
Fix committer user on bumping version
Browse files Browse the repository at this point in the history
  • Loading branch information
ausias-armesto committed Oct 3, 2024
1 parent 7cb6719 commit d9b53e4
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ concurrency:
jobs:
build:
name: Build
runs-on: ubuntu-latest
runs-on: ubuntu-latest # Cannot use self hosted runners because of running postgres docker container
strategy:
matrix:
node-version: [18.x, 20.x, 22.x]
Expand Down
6 changes: 4 additions & 2 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,9 @@ jobs:
steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
ref: main # if you want to use a different branch keep in mind that the bump version step will be affected
token: "${{ secrets.GH_RUNNER_TOKEN }}"

- name: Setup Node.js
uses: hoprnet/hopr-workflows/actions/setup-node-js@master
Expand Down Expand Up @@ -85,14 +88,13 @@ jobs:
- name: Bump Version
id: bump
run: |
npm version ${{ inputs.release_type }} -w "apps/${{ inputs.project }}" --no-git-tag-version
npm version "${{ inputs.release_type }}" -w "apps/${{ inputs.project }}" --no-git-tag-version
BUMP_VERSION=$(jq -r '.version' "apps/${{ inputs.project }}/package.json")
echo "bump_version=${BUMP_VERSION}" >> $GITHUB_OUTPUT
- uses: EndBug/add-and-commit@v9
with:
add: 'apps/${{ inputs.project}}'
default_author: github_actor
new_branch: main
message: 'Bump ${{ inputs.project }} version to ${{ steps.bump.outputs.bump_version }}'
pathspec_error_handling: exitImmediately
Expand Down

0 comments on commit d9b53e4

Please sign in to comment.