diff --git a/.bumpversion.cfg b/.bumpversion.cfg new file mode 100644 index 00000000..3fc8e6b5 --- /dev/null +++ b/.bumpversion.cfg @@ -0,0 +1,10 @@ +[bumpversion] +current_version = 0.1.5 +commit = True +message = Bump version: {current_version} → {new_version} +tag = True +tag_name = v{new_version} + +[bumpversion:file:node/package.json] +[bumpversion:file:rust/ffi/node/Cargo.toml] +[bumpversion:file:rust/vectordb/Cargo.toml] diff --git a/.github/workflows/make-release-commit.yml b/.github/workflows/make-release-commit.yml new file mode 100644 index 00000000..8a18fe0a --- /dev/null +++ b/.github/workflows/make-release-commit.yml @@ -0,0 +1,55 @@ +name: Create release commit + +on: + workflow_dispatch: + inputs: + dry_run: + description: 'Dry run (create the local commit/tags but do not push it)' + required: true + default: "false" + type: choice + options: + - "true" + - "false" + part: + description: 'What kind of release is this?' + required: true + default: 'patch' + type: choice + options: + - patch + - minor + - major + +jobs: + bump-version: + runs-on: ubuntu-latest + steps: + - name: Check out main + uses: actions/checkout@v3 + with: + ref: main + persist-credentials: false + fetch-depth: 0 + lfs: true + - name: Set git configs for bumpversion + shell: bash + run: | + git config user.name 'Lance Release' + git config user.email 'lance-dev@lancedb.com' + - name: Set up Python 3.10 + uses: actions/setup-python@v4 + with: + python-version: "3.10" + - name: Bump version, create tag and commit + run: | + pip install bump2version + bumpversion --verbose ${{ inputs.part }} + - name: Push new version and tag + if: ${{ inputs.dry_run }} == "false" + uses: ad-m/github-push-action@master + with: + github_token: ${{ secrets.LANCEDB_RELEASE_TOKEN }} + branch: main + tags: true + diff --git a/rust/ffi/node/Cargo.toml b/rust/ffi/node/Cargo.toml index e1edae86..281379e7 100644 --- a/rust/ffi/node/Cargo.toml +++ b/rust/ffi/node/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "vectordb-node" -version = "0.1.0" +version = "0.1.5" description = "Serverless, low-latency vector database for AI applications" license = "Apache-2.0" edition = "2018" diff --git a/rust/vectordb/Cargo.toml b/rust/vectordb/Cargo.toml index 06e162fe..81dbde46 100644 --- a/rust/vectordb/Cargo.toml +++ b/rust/vectordb/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "vectordb" -version = "0.0.1" +version = "0.1.5" edition = "2021" description = "Serverless, low-latency vector database for AI applications" license = "Apache-2.0"