Skip to content

Commit

Permalink
Replace deprecated nodejs installation script by recommended way
Browse files Browse the repository at this point in the history
  • Loading branch information
jonnius committed Sep 18, 2023
1 parent ff93c93 commit f87049b
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions clickable.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit f87049b

Please sign in to comment.