This commit is contained in:
@@ -12,15 +12,17 @@ jobs:
|
||||
steps:
|
||||
- name: Bootstrap Node 20
|
||||
run: |
|
||||
if command -v node >/dev/null 2>&1 && node --version | grep -q "^v20"; then
|
||||
echo "Node 20 already installed: $(node --version)"
|
||||
exit 0
|
||||
if command -v apt-get >/dev/null 2>&1; then
|
||||
apt-get update -qq
|
||||
apt-get install -y -qq curl git
|
||||
curl -fsSL https://deb.nodesource.com/setup_20.x | bash -
|
||||
apt-get install -y -qq nodejs
|
||||
elif command -v apk >/dev/null 2>&1; then
|
||||
apk add --no-cache nodejs npm git
|
||||
else
|
||||
echo "Unsupported package manager" && exit 1
|
||||
fi
|
||||
apt-get update -qq
|
||||
apt-get install -y -qq curl
|
||||
curl -fsSL https://deb.nodesource.com/setup_20.x | bash -
|
||||
apt-get install -y -qq nodejs
|
||||
node --version && npm --version
|
||||
node --version && npm --version && git --version
|
||||
|
||||
- name: Checkout
|
||||
run: |
|
||||
|
||||
Reference in New Issue
Block a user