Skip to content

Commit b693abd

Browse files
committed
fix(ci): correct indentation
1 parent 33c96f8 commit b693abd

File tree

1 file changed

+12
-5
lines changed

1 file changed

+12
-5
lines changed

.github/workflows/bump_version.yml

Lines changed: 12 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,15 @@ jobs:
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

0 commit comments

Comments
 (0)