From 71d04fec4b05d629259973db42062c75dda0f716 Mon Sep 17 00:00:00 2001 From: hellovai Date: Thu, 13 Jun 2024 12:37:46 -0700 Subject: [PATCH] Adding scripts for releases (#673) --- tools/bump-version | 100 ++++++++++++++++++++++++++++++++++ tools/versions/engine.cfg | 11 ++++ tools/versions/python.cfg | 11 ++++ tools/versions/ruby.cfg | 11 ++++ tools/versions/typescript.cfg | 11 ++++ tools/versions/vscode.cfg | 11 ++++ 6 files changed, 155 insertions(+) create mode 100755 tools/bump-version create mode 100644 tools/versions/engine.cfg create mode 100644 tools/versions/python.cfg create mode 100644 tools/versions/ruby.cfg create mode 100644 tools/versions/typescript.cfg create mode 100644 tools/versions/vscode.cfg diff --git a/tools/bump-version b/tools/bump-version new file mode 100755 index 000000000..3377c261d --- /dev/null +++ b/tools/bump-version @@ -0,0 +1,100 @@ +#!/usr/bin/env /bin/sh + +# Usage: bump-version +# +# Bumps the version of the project. +# After you merge that in, manually set the release. + +set -eu + +show_help() { + cat <\d+)\.(?P\d+).(?P\d+)$ +serialize = + {major}.{minor}.{patch} + +[bumpversion:file:../engine/Cargo.toml] +search = version = "{current_version}" +replace = version = "{new_version}" diff --git a/tools/versions/python.cfg b/tools/versions/python.cfg new file mode 100644 index 000000000..159b29b4b --- /dev/null +++ b/tools/versions/python.cfg @@ -0,0 +1,11 @@ +[bumpversion] +current_version = 0.39.0 +commit = False +tag = False +parse = ^(?P\d+)\.(?P\d+).(?P\d+)$ +serialize = + {major}.{minor}.{patch} + +[bumpversion:file:../engine/language_client_python/pyproject.toml] +search = version = "{current_version}" +replace = version = "{new_version}" diff --git a/tools/versions/ruby.cfg b/tools/versions/ruby.cfg new file mode 100644 index 000000000..4cc397bbc --- /dev/null +++ b/tools/versions/ruby.cfg @@ -0,0 +1,11 @@ +[bumpversion] +current_version = 0.39.0 +commit = False +tag = False +parse = ^(?P\d+)\.(?P\d+).(?P\d+)$ +serialize = + {major}.{minor}.{patch} + +[bumpversion:file:../engine/language_client_ruby/baml.gemspec] +search = spec.version = "{current_version}" +replace = spec.version = "{new_version}" diff --git a/tools/versions/typescript.cfg b/tools/versions/typescript.cfg new file mode 100644 index 000000000..e31d273db --- /dev/null +++ b/tools/versions/typescript.cfg @@ -0,0 +1,11 @@ +[bumpversion] +current_version = 0.39.1 +commit = False +tag = False +parse = ^(?P\d+)\.(?P\d+).(?P\d+)$ +serialize = + {major}.{minor}.{patch} + +[bumpversion:file:../engine/language_client_typescript/package.json] +search = "version": "{current_version}" +replace = "version": "{new_version}" diff --git a/tools/versions/vscode.cfg b/tools/versions/vscode.cfg new file mode 100644 index 000000000..ef4d40915 --- /dev/null +++ b/tools/versions/vscode.cfg @@ -0,0 +1,11 @@ +[bumpversion] +current_version = 0.39.2 +commit = False +tag = False +parse = ^(?P\d+)\.(?P\d+).(?P\d+)$ +serialize = + {major}.{minor}.{patch} + +[bumpversion:file:../typescript/vscode-ext/packages/package.json] +search = "version": "{current_version}" +replace = "version": "{new_version}"