fix: use node v16

This commit is contained in:
Aravinth Manivannan 2023-10-20 03:19:22 +05:30
parent 4a580b599a
commit 3e2cc350be
Signed by untrusted user: realaravinth
GPG key ID: F8F50389936984FF

View file

@ -9,7 +9,7 @@ pipeline:
- apt-get install -y ca-certificates curl gnupg tar wget
- mkdir -p /etc/apt/keyrings
- curl -fsSL https://deb.nodesource.com/gpgkey/nodesource-repo.gpg.key | gpg --dearmor -o /etc/apt/keyrings/nodesource.gpg
- NODE_MAJOR=18 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
- echo "deb [signed-by=/etc/apt/keyrings/nodesource.gpg] https://deb.nodesource.com/node_16.x nodistro main" | tee /etc/apt/sources.list.d/nodesource.list
- apt-get -y install nodejs npm
- npm install --global yarn
- apt update && apt-get -y --no-install-recommends install nodejs tar gpg curl wget