File tree Expand file tree Collapse file tree 1 file changed +7
-7
lines changed Expand file tree Collapse file tree 1 file changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -24,14 +24,14 @@ steps:
24
24
25
25
- run :
26
26
name : Install node@<<parameters.node_version>>
27
+ # after `curl`, bashrc contains the script to load nvm, we need to source it to use it
27
28
command : |
28
- set +e
29
- touch $BASH_ENV
30
- curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.33.5/install.sh | bash
31
- echo 'export NVM_DIR="$HOME/.nvm"' >> $BASH_ENV
32
- echo '[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh"' >> $BASH_ENV
33
- echo nvm install <<parameters.node_version>> >> $BASH_ENV
34
- echo nvm alias default <<parameters.node_version>> >> $BASH_ENV
29
+ set +e
30
+ curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.35.3/install.sh | bash
31
+ source ~/.bashrc
32
+ command -v nvm
33
+ nvm install <<parameters.node_version>>
34
+ nvm alias default <<parameters.node_version>>
35
35
- run :
36
36
name : Verify node version
37
37
command : node --version
You can’t perform that action at this time.
0 commit comments