File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 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 }}
You can’t perform that action at this time.
0 commit comments