Skip to content

Commit d4af2f8

Browse files
committed
fix: publish needed a global git config for npm publish cmd
1 parent 5a71abd commit d4af2f8

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

.github/workflows/publish.yaml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ on:
2020
- "18.x"
2121
- "20.x"
2222
- "22.x"
23-
default: "20.x"
23+
default: "18.x"
2424

2525
jobs:
2626
release:
@@ -39,12 +39,14 @@ jobs:
3939

4040
- name: Bump node-vault version
4141
run: |
42+
git config --global user.email "github-actions[bot]@github.com"
43+
git config --global user.name "github-actions[bot]"
4244
npm version ${{ github.event.inputs.semver }}
4345
4446
- name: Push changes
4547
uses: EndBug/add-and-commit@1bad3abcf0d6ec49a5857d124b0bfb52dc7bb081 # tag: v9.1.3
4648
with:
47-
default_author: github-actions
49+
default_author: github_actions
4850
add: "package.json package-lock.json"
4951
commit: --signoff
5052
message: "chore(release): bump version to ${{ github.event.inputs.semver }}"

0 commit comments

Comments
 (0)