Skip to content

Commit ee7dd6c

Browse files
Update npm-publish.yml
1 parent 58c6c42 commit ee7dd6c

1 file changed

Lines changed: 7 additions & 2 deletions

File tree

.github/workflows/npm-publish.yml

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: Publish to NPM
1+
Name: Publish to NPM
22

33
on:
44
push:
@@ -36,12 +36,17 @@ jobs:
3636
run: npm run build
3737

3838
- name: Conditional version bump and publish
39-
run: |
39+
40+
run: |
41+
git config --global user.name "github-actions[bot]"
42+
git config --global user.email "github-actions[bot]@users.noreply.github.com"
43+
4044
if [[ ${{ github.ref }} == refs/tags/* ]]; then
4145
echo "Tag push - langsung publish tanpa bump version"
4246
npm publish --access public
4347
else
4448
echo "Regular push - bump version dan publish"
49+
4550
npm version patch -m "ci: bump version to %s [skip ci]"
4651
npm publish --access public
4752
fi

0 commit comments

Comments
 (0)