From 20ea76ea29c4322ec25ab94f3717aa54627f7f4b Mon Sep 17 00:00:00 2001 From: Aravinth Manivannan Date: Fri, 20 Oct 2023 02:18:42 +0530 Subject: [PATCH] fix: CI: update node installation script --- .woodpecker.yml | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/.woodpecker.yml b/.woodpecker.yml index eaabce7..5bedcfc 100644 --- a/.woodpecker.yml +++ b/.woodpecker.yml @@ -5,7 +5,13 @@ pipeline: event: [ push, pull_request, tag, deployment ] branch: master commands: - - curl -fsSL https://deb.nodesource.com/setup_16.x | bash - &&\ + - apt-get update + - 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 + - apt-get -y install nodejs npm + - npm install --global yarn - apt update && apt-get -y --no-install-recommends install nodejs tar gpg curl wget - make env - make