From af4c1422ca1ac8fed481ca15d2a3dae348535f5f Mon Sep 17 00:00:00 2001 From: Alexandre Germain Date: Thu, 8 Jun 2023 13:47:58 +0200 Subject: [PATCH] ci(circleci): fix windows NVM not using correct version --- .circleci/config.yml | 26 ++++++++++++++++++++++---- 1 file changed, 22 insertions(+), 4 deletions(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index 238d0003d..b7a6c0565 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -157,8 +157,26 @@ jobs: type: string executor: <> steps: - - node/install: - node-version: <> + - when: &node-install-windows + condition: + equal: [ <>, windows ] + steps: + - run: + name: Install Node <> + shell: bash.exe + command: | + nvm list + nvm install <> + nvm use <> + + node --version + npm --version + - unless: &node-install-non-windows + condition: + equal: [ <>, windows ] + steps: + - node/install: + node-version: <> - attach_workspace: at: . - knodes-typedoc-orb/install: @@ -199,8 +217,8 @@ jobs: executor: <> parallelism: 2 steps: - - node/install: - node-version: <> + - when: *node-install-windows + - unless: *node-install-non-windows - attach_workspace: at: . - run: