Skip to content

Commit

Permalink
Move git configure before bumping npm version
Browse files Browse the repository at this point in the history
  • Loading branch information
mukulmishra18 committed Dec 28, 2023
1 parent c849cb4 commit 4aae50a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/merge.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,8 @@ jobs:
return defineReleaseVersion({core}, 'minor', undefined, "${{ steps.define-package-json-version.outputs.packageJsonVersion }}" )
- name: Bump package.json version
run: |
git config --global user.name 'Automated Release'
git config --global user.email '[email protected]'
npm version "${{ fromJson(steps.define-release-version.outputs.result).full }}"
- name: Update Changelog
uses: actions/github-script@v6
Expand All @@ -63,8 +65,6 @@ jobs:
# Running a task with github token will not trigger a new workflow run
# token: ${{ secrets.GH_TOKEN }}
run: |
git config --global user.name 'Automated Release'
git config --global user.email '[email protected]'
git add .
git commit -m "Bump version ${{ fromJson(steps.define-release-version.outputs.result).full }} and update changelog"
git push origin feature/test-automated-release
Expand Down

0 comments on commit 4aae50a

Please sign in to comment.