diff --git a/.circleci/config.yml b/.circleci/config.yml index a00050bb5..ffa5c22d6 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -311,6 +311,15 @@ jobs: - run: name: Install python packages command: pip install setuptools_scm twine + - run: + name: Use nvm + # see https://discuss.circleci.com/t/nvm-does-not-change-node-version-on-machine/28973/14 + command: | + echo 'export NVM_DIR="/opt/circleci/.nvm"' >> $BASH_ENV + echo '[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh"' >> $BASH_ENV + - restore_cache: + name: Restore nvm cache + key: v1-nvm-cache-<< parameters.node >> - run: name: Switch node versions command: |