Skip to content

Commit b876ba5

Browse files
Update publish.yml
1 parent afadd14 commit b876ba5

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

.github/workflows/publish.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,10 @@ jobs:
2525
run: npm run build
2626
- name: Run tests
2727
run: npm test
28+
- name: Configure git
29+
run: |
30+
git config --local user.email "github-actions@github.com"
31+
git config --local user.name "GitHub Actions"
2832
- name: Update package.json with release tag
2933
run: |
3034
TAG="${{ github.event.release.tag_name }}"
@@ -33,8 +37,6 @@ jobs:
3337
- name: Commit and push version update
3438
run: |
3539
TAG="${{ github.event.release.tag_name }}"
36-
git config user.name "github-actions"
37-
git config user.email "github-actions@github.com"
3840
git add package.json package-lock.json
3941
git commit -m "Update package.json to version $TAG"
4042
git push origin ${{ github.event.repository.default_branch }}

0 commit comments

Comments
 (0)