Skip to content

Commit

Permalink
fix: make nodejs install work with machine executor
Browse files Browse the repository at this point in the history
  • Loading branch information
stefreak committed Nov 7, 2023
1 parent ceaf0f2 commit caf1237
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions .circleci/continue-config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -126,10 +126,13 @@ commands:
curl -fsSL https://raw.githubusercontent.com/Schniz/fnm/9d0dd1b04521ac4a1c25bb91a65323dbb691e40c/.ci/install.sh | bash -s -- --install-dir "$HOME/.fnm" --force-install
fi
fnm env >> $BASH_ENV
eval $(fnm env)
eval "`fnm env --fnm-dir "$HOME/.fnm-cache"`"
fnm env --fnm-dir "$HOME/.fnm-cache" >> $BASH_ENV
echo 'eval "`fnm env --fnm-dir "$HOME/.fnm-cache"`"' >> ~/.bashrc
fnm use "<<parameters.node_version>>" --fnm-dir "$HOME/.fnm-cache" --install-if-missing
fnm default "<<parameters.node_version>>" --fnm-dir "$HOME/.fnm-cache"
fi
- run:
name: Test NodeJS version
Expand Down

0 comments on commit caf1237

Please sign in to comment.