mirror of
https://github.com/khoj-ai/khoj.git
synced 2024-11-23 23:48:56 +01:00
Use Yarn instead of NPM to bump Desktop, Obsidian client versions
This commit is contained in:
parent
a25689fabf
commit
bbfd320ed4
1 changed files with 12 additions and 12 deletions
|
@ -11,17 +11,17 @@ do
|
||||||
|
|
||||||
# Bump Desktop app to current version
|
# Bump Desktop app to current version
|
||||||
cd $project_root/src/interface/desktop
|
cd $project_root/src/interface/desktop
|
||||||
npm version $version_type
|
yarn version --$version_type --no-git-tag-version
|
||||||
|
|
||||||
# Get bumped project version
|
# Get bumped project version
|
||||||
current_version=$(grep '"version":' package.json | awk -F '"' '{print $4}')
|
current_version=$(grep '"version":' package.json | awk -F '"' '{print $4}')
|
||||||
|
|
||||||
# Bump Obsidian plugin to current version
|
# Bump Obsidian plugin to current version
|
||||||
cd $project_root/src/interface/obsidian
|
cd $project_root/src/interface/obsidian
|
||||||
npm version $version_type
|
yarn version --$version_type --no-git-tag-version
|
||||||
# append current version, min Obsidian app version from manifest to versions json
|
# append current version, min Obsidian app version from manifest to versions json
|
||||||
cp $project_root/versions.json .
|
cp $project_root/versions.json .
|
||||||
npm run version # run Obsidian version script
|
yarn run version # run Obsidian version script
|
||||||
|
|
||||||
# Bump Emacs package to current version
|
# Bump Emacs package to current version
|
||||||
cd ../emacs
|
cd ../emacs
|
||||||
|
@ -41,7 +41,7 @@ do
|
||||||
git add \
|
git add \
|
||||||
$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/package-lock.json \
|
$project_root/src/interface/obsidian/yarn.lock \
|
||||||
$project_root/src/interface/obsidian/manifest.json \
|
$project_root/src/interface/obsidian/manifest.json \
|
||||||
$project_root/src/interface/obsidian/versions.json \
|
$project_root/src/interface/obsidian/versions.json \
|
||||||
$project_root/src/interface/emacs/khoj.el \
|
$project_root/src/interface/emacs/khoj.el \
|
||||||
|
@ -56,14 +56,14 @@ do
|
||||||
|
|
||||||
# Bump Desktop app to current version
|
# Bump Desktop app to current version
|
||||||
cd $project_root/src/interface/desktop
|
cd $project_root/src/interface/desktop
|
||||||
npm version $current_version
|
yarn version --new-version $current_version --no-git-tag-version
|
||||||
|
|
||||||
# Bump Obsidian plugin to current version
|
# Bump Obsidian plugin to current version
|
||||||
cd $project_root/src/interface/obsidian
|
cd $project_root/src/interface/obsidian
|
||||||
npm version $current_version
|
yarn version --new-version $current_version --no-git-tag-version
|
||||||
# append current version, min Obsidian app version from manifest.json to versions.json
|
# append current version, min Obsidian app version from manifest.json to versions.json
|
||||||
cp $project_root/versions.json .
|
cp $project_root/versions.json .
|
||||||
npm run version # run Obsidian version script
|
yarn run version # run Obsidian version script
|
||||||
|
|
||||||
# Bump Emacs package to current version
|
# Bump Emacs package to current version
|
||||||
cd ../emacs
|
cd ../emacs
|
||||||
|
@ -83,7 +83,7 @@ do
|
||||||
git add \
|
git add \
|
||||||
$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/package-lock.json \
|
$project_root/src/interface/obsidian/yarn.lock \
|
||||||
$project_root/src/interface/obsidian/manifest.json \
|
$project_root/src/interface/obsidian/manifest.json \
|
||||||
$project_root/src/interface/obsidian/versions.json \
|
$project_root/src/interface/obsidian/versions.json \
|
||||||
$project_root/src/interface/emacs/khoj.el \
|
$project_root/src/interface/emacs/khoj.el \
|
||||||
|
@ -100,14 +100,14 @@ do
|
||||||
|
|
||||||
# Bump Desktop app to next version
|
# Bump Desktop app to next version
|
||||||
cd $project_root/src/interface/desktop
|
cd $project_root/src/interface/desktop
|
||||||
npm version $next_version
|
yarn version --new-version $next_version --no-git-tag-version
|
||||||
|
|
||||||
# Bump Obsidian plugins to next version
|
# Bump Obsidian plugins to next version
|
||||||
cd $project_root/src/interface/obsidian
|
cd $project_root/src/interface/obsidian
|
||||||
npm version $next_version
|
yarn version --new-version $next_version --no-git-tag-version
|
||||||
# append next version, min Obsidian app version from manifest to versions json
|
# append next version, min Obsidian app version from manifest to versions json
|
||||||
git rm --cached -- versions.json
|
git rm --cached -- versions.json
|
||||||
npm run version # run Obsidian version script
|
yarn run version # run Obsidian version script
|
||||||
|
|
||||||
# Bump Emacs package to next version
|
# Bump Emacs package to next version
|
||||||
cd $project_root/src/interface/emacs
|
cd $project_root/src/interface/emacs
|
||||||
|
@ -121,7 +121,7 @@ do
|
||||||
git add \
|
git add \
|
||||||
$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/package-lock.json \
|
$project_root/src/interface/obsidian/yarn.lock \
|
||||||
$project_root/src/interface/obsidian/manifest.json \
|
$project_root/src/interface/obsidian/manifest.json \
|
||||||
$project_root/src/interface/obsidian/versions.json \
|
$project_root/src/interface/obsidian/versions.json \
|
||||||
$project_root/src/interface/emacs/khoj.el
|
$project_root/src/interface/emacs/khoj.el
|
||||||
|
|
Loading…
Reference in a new issue