Skip to content

Commit

Permalink
Set Git identity earlier
Browse files Browse the repository at this point in the history
  • Loading branch information
winstliu authored Sep 26, 2021
1 parent 1ec308a commit 8c5a1f9
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,15 +28,15 @@ jobs:
- name: npm run build
run: npm run build

- name: npm version ${{ github.event.inputs.version }}
run: npm version ${{ github.event.inputs.version }}

- name: Set git variables
- name: Set git identity
run: |
$user = Invoke-RestMethod -Method Get -Uri https://api.github.com/users/${{ github.actor }}
git config user.name $user.name
git config user.email ($user.email ?? "${{ github.actor }}@noreply.users.github.com")
- name: npm version ${{ github.event.inputs.version }}
run: npm version ${{ github.event.inputs.version }}

- name: Push new version to GitHub
run: |
git add package.json package-lock.json
Expand Down

0 comments on commit 8c5a1f9

Please sign in to comment.