mirror of
https://github.com/khoaliber/khoj.git
synced 2026-03-07 21:29:13 +00:00
Update bump version script to bump new next.js web app version too
This commit is contained in:
@@ -9,6 +9,10 @@ do
|
|||||||
# Get version type to bump. Options: major, minor, patch
|
# Get version type to bump. Options: major, minor, patch
|
||||||
version_type=$OPTARG
|
version_type=$OPTARG
|
||||||
|
|
||||||
|
# Bump Web app to current version
|
||||||
|
cd $project_root/src/interface/web
|
||||||
|
yarn version --$version_type --no-git-tag-version
|
||||||
|
|
||||||
# Bump Desktop app to current version
|
# Bump Desktop app to current version
|
||||||
cd $project_root/src/interface/desktop
|
cd $project_root/src/interface/desktop
|
||||||
yarn version --$version_type --no-git-tag-version
|
yarn version --$version_type --no-git-tag-version
|
||||||
@@ -40,6 +44,7 @@ do
|
|||||||
|
|
||||||
# Commit changes and tag commit for release
|
# Commit changes and tag commit for release
|
||||||
git add \
|
git add \
|
||||||
|
$project_root/src/interface/web/package.json \
|
||||||
$project_root/src/interface/desktop/package.json \
|
$project_root/src/interface/desktop/package.json \
|
||||||
$project_root/src/interface/obsidian/package.json \
|
$project_root/src/interface/obsidian/package.json \
|
||||||
$project_root/src/interface/obsidian/yarn.lock \
|
$project_root/src/interface/obsidian/yarn.lock \
|
||||||
@@ -55,6 +60,10 @@ do
|
|||||||
# Get current project version
|
# Get current project version
|
||||||
current_version=$OPTARG
|
current_version=$OPTARG
|
||||||
|
|
||||||
|
# Bump Web app to current version
|
||||||
|
cd $project_root/src/interface/web
|
||||||
|
yarn version --new-version $current_version --no-git-tag-version
|
||||||
|
|
||||||
# Bump Desktop app to current version
|
# Bump Desktop app to current version
|
||||||
cd $project_root/src/interface/desktop
|
cd $project_root/src/interface/desktop
|
||||||
yarn version --new-version $current_version --no-git-tag-version
|
yarn version --new-version $current_version --no-git-tag-version
|
||||||
@@ -82,6 +91,7 @@ do
|
|||||||
|
|
||||||
# Commit changes and tag commit for release
|
# Commit changes and tag commit for release
|
||||||
git add \
|
git add \
|
||||||
|
$project_root/src/interface/web/package.json \
|
||||||
$project_root/src/interface/desktop/package.json \
|
$project_root/src/interface/desktop/package.json \
|
||||||
$project_root/src/interface/obsidian/package.json \
|
$project_root/src/interface/obsidian/package.json \
|
||||||
$project_root/src/interface/obsidian/yarn.lock \
|
$project_root/src/interface/obsidian/yarn.lock \
|
||||||
@@ -99,6 +109,10 @@ do
|
|||||||
next_version=$(touch bump.txt && git add bump.txt && hatch version | sed 's/\.dev.*//g')
|
next_version=$(touch bump.txt && git add bump.txt && hatch version | sed 's/\.dev.*//g')
|
||||||
git rm --cached -- bump.txt && rm bump.txt
|
git rm --cached -- bump.txt && rm bump.txt
|
||||||
|
|
||||||
|
# Bump Web app to next version
|
||||||
|
cd $project_root/src/interface/web
|
||||||
|
yarn version --new-version $next_version --no-git-tag-version
|
||||||
|
|
||||||
# Bump Desktop app to next version
|
# Bump Desktop app to next version
|
||||||
cd $project_root/src/interface/desktop
|
cd $project_root/src/interface/desktop
|
||||||
yarn version --new-version $next_version --no-git-tag-version
|
yarn version --new-version $next_version --no-git-tag-version
|
||||||
@@ -120,6 +134,7 @@ do
|
|||||||
|
|
||||||
# Commit changes
|
# Commit changes
|
||||||
git add \
|
git add \
|
||||||
|
$project_root/src/interface/web/package.json \
|
||||||
$project_root/src/interface/desktop/package.json \
|
$project_root/src/interface/desktop/package.json \
|
||||||
$project_root/src/interface/obsidian/package.json \
|
$project_root/src/interface/obsidian/package.json \
|
||||||
$project_root/src/interface/obsidian/yarn.lock \
|
$project_root/src/interface/obsidian/yarn.lock \
|
||||||
|
|||||||
Reference in New Issue
Block a user