Skip to content

Commit

Permalink
fix: update bump script
Browse files Browse the repository at this point in the history
  • Loading branch information
everpcpc committed Mar 25, 2024
1 parent 7a0e830 commit 89c18d1
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions scripts/bump.sh
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@
# See the License for the specific language governing permissions and
# limitations under the License.

set -e

VERSION=$1

if [ -z "$VERSION" ]; then
Expand All @@ -33,6 +35,11 @@ else
sed -i "s/\"version\": \".*\"/\"version\": \"$VERSION\"/g" bindings/nodejs/npm/*/package.json
fi

git status
git checkout main
git fetch upstream
git rebase upstream/main
git checkout -b "bump-$VERSION"
git status
git add Cargo.toml bindings/nodejs/package.json bindings/nodejs/npm/*/package.json
git commit -m "chore: bump version to $VERSION"

0 comments on commit 89c18d1

Please sign in to comment.