Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Replace deprecated nodejs installation script by recommended way #1095

Merged
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading