Skip to content

Commit a68b229

Browse files
author
Github Actions
committed
track
1 parent 5f9ce49 commit a68b229

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

bump-version.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,13 +32,13 @@ echo "export const SDK_VERSION = \"$(echo "${NEW_VERSION}" | sed 's/^v//')\"" >
3232

3333
echo "📝 Committing to GitHub... Target branch: $2"
3434
git fetch
35-
git checkout origin/$2
35+
git checkout --track origin/$2
3636
git config --global user.email "[email protected]"
3737
git config --global user.name "Github Actions"
3838
git add package.json CHANGELOG.md src/version.ts
3939
git commit --no-verify -m "📦 Release $NEW_VERSION" || exit 1
4040

41-
git push origin $2 --no-verify || exit 1
41+
git push --no-verify || exit 1
4242
echo "🎉 Pushed to GitHub ..."
4343
# echo "🎉 dry run. branch $current_branch version $NEW_VERSION"
4444

0 commit comments

Comments
 (0)