Fix yarn install error on script

This commit is contained in:
KMY 2023-09-17 22:24:36 +09:00
parent 7744b2a1ce
commit 37664ef3eb
2 changed files with 5 additions and 0 deletions

View file

@ -26,6 +26,10 @@ apt install -y \
corepack enable
yarn set version classic
# Mastodonパッケージにもnode-gypは入ってるけど、npmのほうからグローバルにインストールしないと
# yarn installで一部のOptionalパッケージインストール時にエラーが出てしまう様子
npm i -g node-gyp
# mastodonユーザーを追加
adduser --disabled-login mastodon

View file

@ -2,6 +2,7 @@ cd ~/live
# kmyblueの最新タグを取り込む
if [ "$1" == "debug" ]; then
echo 'DEBUG'
elif [ "$1" == "newest" ]; then
git checkout $(git tag -l | grep -E '^kb[0-9]' | grep -v 'rc[0-9]*$' | sort -V | tail -n 1)
else