update readme version
This commit is contained in:
@@ -27,6 +27,7 @@ jobs:
|
||||
echo "Installing fetch"
|
||||
install_node=$false
|
||||
if ! command -v node &> /dev/null; then
|
||||
echo "No version of NodeJS detected"
|
||||
install_node=true
|
||||
else
|
||||
node_version=$(node -v)
|
||||
@@ -35,6 +36,7 @@ jobs:
|
||||
node_version=${node_version%\.*} # Remove trailing ".*".
|
||||
node_version=$(($node_version)) # Convert the NodeJS version number from a string to an integer.
|
||||
if [ $node_version -lt 24 ]; then
|
||||
echo "node version : " $node_version
|
||||
echo $"removing outdated npm version"
|
||||
install_node=true
|
||||
apt-get remove nodejs npm
|
||||
|
||||
Reference in New Issue
Block a user