Install Node.js 16 and 18 by default (and 20 additionally) (#98)

* Install Node.js 16 and 18 by default (and 20 additionally)

* Use caching for go test
This commit is contained in:
Rene Leonhardt
2023-07-27 14:31:50 +02:00
committed by GitHub
parent 311d8fff18
commit 284416fdf8
6 changed files with 11 additions and 10 deletions
+1 -1
View File
@@ -121,7 +121,7 @@ for ver in "${NODE[@]}"; do
wget "https://nodejs.org/download/release/latest-v${ver}.x/node-$VER-linux-$(node_arch).tar.xz" -O "node-$VER-linux-$(node_arch).tar.xz"
tar -Jxf "node-$VER-linux-$(node_arch).tar.xz" --strip-components=1 -C "$NODEPATH"
rm "node-$VER-linux-$(node_arch).tar.xz"
if [[ "${ver}" == "16" ]]; then
if [[ "${ver}" == "18" ]]; then # make this version the default (latest LTS)
sed "s|^PATH=|PATH=$NODEPATH/bin:|mg" -i /etc/environment
fi
export PATH="$NODEPATH/bin:$PATH"