From f87049b167dfa02d1eb2b09b19b609a8921fdbcb Mon Sep 17 00:00:00 2001 From: Jonatan Hatakeyama Zeidler Date: Mon, 18 Sep 2023 18:45:53 +0200 Subject: [PATCH] Replace deprecated nodejs installation script by recommended way --- clickable.yaml | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/clickable.yaml b/clickable.yaml index 35615e394..8be2ee26b 100644 --- a/clickable.yaml +++ b/clickable.yaml @@ -39,12 +39,15 @@ libraries: axolotlweb: image_setup: run: - - curl -fsSL https://deb.nodesource.com/setup_20.x | bash - - - apt-get install -y nodejs + # Install instructions taken from https://github.com/nodesource/distributions#installation-instructions + - mkdir -p /etc/apt/keyrings + - curl -fsSL https://deb.nodesource.com/gpgkey/nodesource-repo.gpg.key | gpg --dearmor -o /etc/apt/keyrings/nodesource.gpg + - echo "deb [signed-by=/etc/apt/keyrings/nodesource.gpg] https://deb.nodesource.com/node_20.x nodistro main" | tee /etc/apt/sources.list.d/nodesource.list + - apt-get update && apt-get install -y nodejs - echo "NODE Version:" && node --version - echo "NPM Version:" && npm --version builder: custom src_dir: axolotl-web build: - - cd ../../../axolotl-web/ && npm ci && npm run build + - cd ${SRC_DIR} && npm ci && npm run build