Skip to content

Commit

Permalink
Only commit if there are changes
Browse files Browse the repository at this point in the history
  • Loading branch information
UX3D-haertl committed Sep 3, 2024
1 parent ab374c7 commit c974778
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/Publish_to_NPM.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ on:
types: [prereleased, released]

jobs:
build:
publish:
runs-on: ubuntu-latest

steps:
Expand Down Expand Up @@ -45,7 +45,7 @@ jobs:
git add package-lock.json
git add API.md
git checkout -b release/${{ github.event.release.tag_name }}
git commit -m "Bump version to ${{ github.event.release.tag_name }}"
git diff-index --quiet HEAD || git commit -m "Bump version to ${{ github.event.release.tag_name }}"
git tag -f ${{ github.event.release.tag_name }}
git fetch
git switch main
Expand Down

0 comments on commit c974778

Please sign in to comment.