update readme action
This commit is contained in:
@@ -46,12 +46,15 @@ jobs:
|
||||
if $install_node; then
|
||||
NODE_MAJOR=24
|
||||
echo "Installing node ${NODE_MAJOR}"
|
||||
rm /etc/apt/keyrings/nodesource.gpg
|
||||
rm /etc/apt/sources.list.d/nodesource.list
|
||||
if test -f /etc/apt/keyrings/nodesource.gpg; then
|
||||
rm /etc/apt/keyrings/nodesource.gpg
|
||||
fi
|
||||
if test -f /etc/apt/sources.list.d/nodesource.list; then
|
||||
rm /etc/apt/sources.list.d/nodesource.list
|
||||
fi
|
||||
apt-get update
|
||||
apt-get install -y -q ca-certificates curl gnupg
|
||||
mkdir -p /etc/apt/keyrings
|
||||
curl -fsSL https://deb.nodesource.com/setup_24.x | bash
|
||||
curl -fsSL https://deb.nodesource.com/gpgkey/nodesource-repo.gpg.key | gpg --dearmor -o /etc/apt/keyrings/nodesource.gpg
|
||||
echo "deb [signed-by=/etc/apt/keyrings/nodesource.gpg] https://deb.nodesource.com/node_${NODE_MAJOR}.x nodistro main" | tee /etc/apt/sources.list.d/nodesource.list
|
||||
apt-get update
|
||||
|
||||
Reference in New Issue
Block a user