File tree Expand file tree Collapse file tree 1 file changed +12
-5
lines changed Expand file tree Collapse file tree 1 file changed +12
-5
lines changed Original file line number Diff line number Diff line change 3131
3232 - name : Commit and push changes
3333 run : |
34- git config --global user.name "github-actions[bot]"
35- git config --global user.email "github-actions[bot]@users.noreply.github.com"
36- git add package.json
37- git diff --cached --quiet && echo "No version change." || git commit -m "chore(release): bump version [skip ci]"
38- git push
34+ git config --global user.name "github-actions[bot]"
35+ git config --global user.email "github-actions[bot]@users.noreply.github.com"
36+ git add package.json
37+ if git diff --cached --quiet; then
38+ echo "No version change."
39+ else
40+ git commit -m "chore(release): bump version [skip ci]"
41+ git push
42+ VERSION=$(node -p "require('./package.json').version")
43+ git tag "v${VERSION}"
44+ git push origin "v${VERSION}"
45+ fi
You can’t perform that action at this time.
0 commit comments