code-server-nvm update/add workflows

This commit is contained in:
aptalca
2023-05-17 13:13:09 -04:00
parent a6cd3086e0
commit 910271f9de
5 changed files with 63 additions and 68 deletions
-16
View File
@@ -1,16 +0,0 @@
#!/usr/bin/with-contenv bash
NVM_DIR="$HOME/.nvm"
echo "**** installing nvm ****"
if [ ! -s "$NVM_DIR/nvm.sh" ]; then
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/master/install.sh | bash
echo "**** loading nvm ****"
source "$NVM_DIR/nvm.sh"
echo "**** installing the latest release ****"
nvm install node
else
echo "**** nvm already installed, skipping ****"
fi