Skip to content

Commit

Permalink
Configure git before npm version command
Browse files Browse the repository at this point in the history
  • Loading branch information
mukulmishra18 committed Dec 28, 2023
1 parent 20cacec commit ffabdd9
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 @@ -42,6 +42,8 @@ jobs:
- name: Bump package.json version
run: |
git pull
git config --global user.email '[email protected]'
git config --global user.name 'Automated Release'
npm version "${{ fromJson(steps.define-release-version.outputs.result).full }}"
- name: Update Changelog
uses: actions/github-script@v6
Expand All @@ -64,8 +66,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

0 comments on commit ffabdd9

Please sign in to comment.