Update bump version script to bump new next.js web app version too

This commit is contained in:
Debanjum Singh Solanky 2024-08-05 16:20:47 +05:30
parent 2a63439b16
commit 7d3a208f8b

View file

@ -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 \