Skip to content

Commit 0a749dc

Browse files
committed
Update release-to-npm.yml
1 parent b4f9fd6 commit 0a749dc

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

.github/workflows/release-to-npm.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,8 +53,10 @@ jobs:
5353
run: |
5454
git config user.name "GitHub Actions"
5555
git config user.email "actions@github.com"
56+
git checkout ${{ github.ref_name }}
5657
git add package.json CHANGELOG.md
57-
git commit -m "chore(release): ${GITHUB_REF#refs/tags/} [skip ci]"
58-
git push
58+
git commit -m "chore(release): ${GITHUB_REF#refs/tags/} [skip ci]" || echo "No changes to commit"
59+
git push origin ${{ github.ref_name }}
5960
env:
6061
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
62+

0 commit comments

Comments
 (0)