Skip to content

Commit

Permalink
fix: wip
Browse files Browse the repository at this point in the history
  • Loading branch information
BelfordZ committed Apr 11, 2024
1 parent 8f76786 commit 68cbbfd
Showing 1 changed file with 11 additions and 10 deletions.
21 changes: 11 additions & 10 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,17 +44,18 @@ jobs:
steps:
- checkout
- run:
name: Install nodenv and Node.js
name: Swap node versions
command: |
git clone https://github.com/nodenv/nodenv.git ~/.nodenv
echo 'export PATH="$HOME/.nodenv/bin:$PATH"' >> ~/.bashrc
echo 'eval "$(nodenv init -)"' >> ~/.bashrc
exec $SHELL
git clone https://github.com/nodenv/node-build.git $(nodenv root)/plugins/node-build
nodenv install 20.12.1
nodenv local 20.12.1
nodenv global 20.12.1
nodenv rehash
set +e
wget -qO- https://raw.githubusercontent.com/nvm-sh/nvm/v0.35.1/install.sh | bash
export NVM_DIR="$HOME/.nvm"
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh"
[ -s "$NVM_DIR/bash_completion" ] && \. "$NVM_DIR/bash_completion"
nvm install v20.12
nvm alias default 20.12
echo 'export NVM_DIR="$HOME/.nvm"' >> $BASH_ENV
echo '[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh"' >> $BASH_ENV
# Verify Node.js version
- run:
name: Verify Node.js version
Expand Down

0 comments on commit 68cbbfd

Please sign in to comment.