Skip to content

Commit 1692a0a

Browse files
Update npm-publish.yml
1 parent 78a2f68 commit 1692a0a

1 file changed

Lines changed: 1 addition & 25 deletions

File tree

.github/workflows/npm-publish.yml

Lines changed: 1 addition & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -61,28 +61,4 @@ jobs:
6161
if: github.ref == 'refs/heads/master'
6262
run: git push origin master --follow-tags
6363
env:
64-
GITHUB_TOKEN: ${{ secrets.GH_TOKEN }}
65-
66-
- name: Conditional version bump and publish
67-
68-
run: |
69-
git config --global user.name "github-actions[bot]"
70-
git config --global user.email "github-actions[bot]@users.noreply.github.com"
71-
72-
if [[ ${{ github.ref }} == refs/tags/* ]]; then
73-
echo "Tag push - langsung publish tanpa bump version"
74-
npm publish --access public
75-
else
76-
echo "Regular push - bump version dan publish"
77-
78-
npm version patch -m "ci: bump version to %s [skip ci]"
79-
npm publish --access public
80-
fi
81-
env:
82-
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
83-
84-
- name: Push version changes
85-
if: startsWith(github.ref, 'refs/heads/')
86-
run: git push origin master --follow-tags
87-
env:
88-
GITHUB_TOKEN: ${{ secrets.GH_TOKEN }}
64+
GITHUB_TOKEN: ${{ secrets.GH_TOKEN }}

0 commit comments

Comments
 (0)