This commit is contained in:
@@ -12,15 +12,17 @@ jobs:
|
|||||||
steps:
|
steps:
|
||||||
- name: Bootstrap Node 20
|
- name: Bootstrap Node 20
|
||||||
run: |
|
run: |
|
||||||
if command -v node >/dev/null 2>&1 && node --version | grep -q "^v20"; then
|
if command -v apt-get >/dev/null 2>&1; then
|
||||||
echo "Node 20 already installed: $(node --version)"
|
apt-get update -qq
|
||||||
exit 0
|
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
|
fi
|
||||||
apt-get update -qq
|
node --version && npm --version && git --version
|
||||||
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
|
|
||||||
|
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
run: |
|
run: |
|
||||||
|
|||||||
Reference in New Issue
Block a user