Skip to content

Commit

Permalink
Release version [VERSION]
Browse files Browse the repository at this point in the history
  • Loading branch information
ImBIOS committed Dec 14, 2023
1 parent 8c01134 commit 4936a90
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions scripts/build-and-publish.sh
Original file line number Diff line number Diff line change
Expand Up @@ -35,9 +35,14 @@ echo "RELEASE_NOTES=$RELEASE_NOTES" >>$GITHUB_ENV
# Update the package.json version
yarn version --new-version $VERSION

# Commit and push changes if needed
git commit -am "Release $VERSION"
git push origin main
# Check if there are changes to commit
if git diff-index --quiet HEAD --; then
echo "No changes to commit. Skipping commit and push."
else
# Commit and push changes if needed
git commit -am "Release $VERSION"
git push origin main
fi

# Push the tag to the repository
git tag $VERSION
Expand Down

0 comments on commit 4936a90

Please sign in to comment.