diff --git a/roles/upload-npm/tasks/main.yaml b/roles/upload-npm/tasks/main.yaml index 85c3dee31..8fa53f2d4 100644 --- a/roles/upload-npm/tasks/main.yaml +++ b/roles/upload-npm/tasks/main.yaml @@ -16,6 +16,8 @@ shell: executable: /bin/bash cmd: | + export NVM_DIR="$HOME/.nvm" + [ -s "$NVM_DIR/nvm.sh" ] && . "$NVM_DIR/nvm.sh" # This loads nvm nvm install node nvm use node npm publish --ignore-scripts {{ zuul.executor.work_root }}/artifacts/{{ zuul.project.short_name }}-{{ project_ver }}.tar.gz