From 450fb7952f371f364421f107decb30c2bc2ba7a6 Mon Sep 17 00:00:00 2001 From: Wojtek Zieba Date: Fri, 2 Feb 2024 16:26:15 +0100 Subject: [PATCH] ci: enable nvm --- .buildkite/pipeline.yml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.buildkite/pipeline.yml b/.buildkite/pipeline.yml index f632454..6030aa0 100644 --- a/.buildkite/pipeline.yml +++ b/.buildkite/pipeline.yml @@ -12,6 +12,8 @@ common-params: steps: - label: "Publish to Maven Local (to verify build)" command: | + export NVM_DIR="$HOME/.nvm" + [ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" source /root/.bashrc nvm install && nvm use npm install @@ -23,7 +25,8 @@ steps: - *docker-container if: build.branch == "trunk" command: | - source /root/.bashrc + export NVM_DIR="$HOME/.nvm" + [ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" nvm install && nvm use npm install