Dynamically fetch pnpm version from package.json

This commit is contained in:
Jordan Tomkinson 2025-12-28 22:45:25 +00:00
parent 8dc0e3b962
commit 6c01ab9cf4
2 changed files with 4 additions and 2 deletions

View File

@ -33,7 +33,8 @@ function update_script() {
systemctl stop tracearr postgresql redis
msg_ok "Stopped Services"
NODE_VERSION="22" NODE_MODULE="pnpm@10.24.0" setup_nodejs
PNPM_VERSION="$(curl -fsSL "https://raw.githubusercontent.com/connorgallopo/Tracearr/refs/heads/main/package.json" | jq -r '.packageManager | split("@")[1]')"
NODE_VERSION="22" NODE_MODULE="pnpm@${PNPM_VERSION}" setup_nodejs
CLEAN_INSTALL=1 fetch_and_deploy_gh_release "tracearr" "connorgallopo/Tracearr" "tarball" "latest" "/opt/tracearr.build"

View File

@ -17,7 +17,8 @@ msg_info "Installing Dependencies"
$STD apt install -y redis-server
msg_ok "Installed Dependencies"
NODE_VERSION="22" NODE_MODULE="pnpm@10.24.0" setup_nodejs
PNPM_VERSION="$(curl -fsSL "https://raw.githubusercontent.com/connorgallopo/Tracearr/refs/heads/main/package.json" | jq -r '.packageManager | split("@")[1]')"
NODE_VERSION="22" NODE_MODULE="pnpm@${PNPM_VERSION}" setup_nodejs
PG_VERSION="18" setup_postgresql
msg_info "Installing TimescaleDB"