Skip to content

Commit

Permalink
Git config is needed before yarn version
Browse files Browse the repository at this point in the history
  • Loading branch information
kislakiruben committed Mar 11, 2021
1 parent 0446981 commit 59dd810
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/npm-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,12 +25,12 @@ jobs:
node-version: 12
registry-url: https://registry.npmjs.org/
- run: yarn config set version-git-message "Released v%s"
- run: git config user.email "[email protected]"
- run: git config user.name "Ruben"
- run: yarn version --new-version ${{ github.event.release.tag_name }}
- run: yarn publish
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
- run: git config user.email "[email protected]"
- run: git config user.name "Ruben"
- run: git push
env:
github-token: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit 59dd810

Please sign in to comment.