Skip to content

Commit

Permalink
w
Browse files Browse the repository at this point in the history
  • Loading branch information
Github Actions committed Jan 7, 2024
1 parent cbd5693 commit d29a12b
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions bump-version.sh
Original file line number Diff line number Diff line change
Expand Up @@ -28,16 +28,18 @@ echo "⌗ Bumping to: ${NEW_VERSION}"
echo "⌗ Updating CHANGELOG"
npm i -g auto-changelog
auto-changelog --hide-credit -l 100
echo "export const SDK_VERSION = '$(echo "${NEW_VERSION}" | sed 's/^v//')'" > src/version.ts
echo "export const SDK_VERSION = \"$(echo "${NEW_VERSION}" | sed 's/^v//')\"" > src/version.ts

echo "📝 Committing to GitHub..."
TARGET_BRANCH=origin/$2
echo "📝 Committing to GitHub... Target branch: $CURRENT_VERSION"
git fetch
git checkout $TARGET_BRANCH
git config --global user.email "[email protected]"
git config --global user.name "Github Actions"
git add package.json CHANGELOG.md src/version.ts
git commit --no-verify -m "📦 Release $NEW_VERSION" || exit 1

git push origin/$2 --no-verify || exit 1
git push $TARGET_BRANCH --no-verify || exit 1
echo "🎉 Pushed to GitHub ..."
# echo "🎉 dry run. branch $current_branch version $NEW_VERSION"

Expand Down

0 comments on commit d29a12b

Please sign in to comment.