diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index bb1d863a6..c947d3714 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -54,7 +54,13 @@ jobs: sleep 10 wget --no-check-certificate -p https://127.0.0.1 -O /dev/null printf "\n# Installing npm\n" - sudo apt update && sudo apt install npm + sudo apt install npm + sudo mkdir -p /etc/apt/keyrings + curl -fsSL https://deb.nodesource.com/gpgkey/nodesource-repo.gpg.key | sudo gpg --dearmor -o /etc/apt/keyrings/nodesource.gpg + NODE_MAJOR=20 + echo "deb [signed-by=/etc/apt/keyrings/nodesource.gpg] https://deb.nodesource.com/node_$NODE_MAJOR.x nodistro main" | sudo tee /etc/apt/sources.list.d/nodesource.list + sudo apt update + sudo apt install nodejs printf "\n# Installing redoc-cli\n" sudo npm install -g redoc-cli printf "\n# Generating manual\n"