update readme action
This commit is contained in:
@@ -35,12 +35,14 @@ jobs:
|
|||||||
node_version=${node_version%\.*} # Remove trailing ".*".
|
node_version=${node_version%\.*} # Remove trailing ".*".
|
||||||
node_version=$(($node_version)) # Convert the NodeJS version number from a string to an integer.
|
node_version=$(($node_version)) # Convert the NodeJS version number from a string to an integer.
|
||||||
if [ $node_version -lt 24 ]; then
|
if [ $node_version -lt 24 ]; then
|
||||||
|
echo $"removing outdated npm version"
|
||||||
install_node=true
|
install_node=true
|
||||||
apt-get remove nodejs npm
|
apt-get remove nodejs npm
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if $install_node; then
|
if $install_node; then
|
||||||
|
echo $"Installing node 24"
|
||||||
apt-get install -y curl
|
apt-get install -y curl
|
||||||
curl -fsSL https://deb.nodesource.com/setup_24.x | bash
|
curl -fsSL https://deb.nodesource.com/setup_24.x | bash
|
||||||
apt-get install -y -q nodejs
|
apt-get install -y -q nodejs
|
||||||
@@ -50,7 +52,7 @@ jobs:
|
|||||||
echo $(npm list -g | grep -c node-fetch)
|
echo $(npm list -g | grep -c node-fetch)
|
||||||
package='@actions/core'
|
package='@actions/core'
|
||||||
if [ `npm list -g | grep -c $package` -eq 0 ]; then
|
if [ `npm list -g | grep -c $package` -eq 0 ]; then
|
||||||
npm install $package -g
|
npm install -g $package
|
||||||
fi
|
fi
|
||||||
- name: Login to DockerHub container registry
|
- name: Login to DockerHub container registry
|
||||||
uses: https://github.com/docker/login-action@v3
|
uses: https://github.com/docker/login-action@v3
|
||||||
|
|||||||
Reference in New Issue
Block a user