Skip to content

Commit 58a1819

Browse files
committed
Update publish.yml
2 parents dba8cbc + 3ad71a8 commit 58a1819

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

.github/workflows/publish.yml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,9 @@ jobs:
1010
node-version: [18.x]
1111
steps:
1212
- uses: actions/checkout@v4
13+
with:
14+
fetch-depth: 0
15+
token: ${{ secrets.AVORTYBOT_TOKEN }}
1316
- name: Setup Node
1417
uses: actions/setup-node@v4
1518
with:
@@ -23,9 +26,10 @@ jobs:
2326
- name: Update version in package.json
2427
run: |
2528
npm --no-git-tag-version version ${{ steps.extract_tag.outputs.VERSION }}
26-
git config --global user.email "github-actions[bot]@users.noreply.github.com"
27-
git config --global user.name "github-actions[bot]"
29+
git config --global user.email "contact.avorty@gmail.com"
30+
git config --global user.name "AvortyBot"
2831
git commit -am "chore: bump version to ${{ steps.extract_tag.outputs.VERSION }}"
32+
git push origin HEAD:main
2933
- name: Publish to npm
3034
run: npm publish --access public
3135
env:

0 commit comments

Comments
 (0)