Skip to content

Commit

Permalink
ci(circleci): fix windows NVM not using correct version
Browse files Browse the repository at this point in the history
  • Loading branch information
GerkinDev committed Jun 9, 2023
1 parent 34a57fb commit af4c142
Showing 1 changed file with 22 additions and 4 deletions.
26 changes: 22 additions & 4 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -157,8 +157,26 @@ jobs:
type: string
executor: <<parameters.os>>
steps:
- node/install:
node-version: <<parameters.node-version>>
- when: &node-install-windows
condition:
equal: [ <<parameters.os>>, windows ]
steps:
- run:
name: Install Node <<parameters.node-version>>
shell: bash.exe
command: |
nvm list
nvm install <<parameters.node-version>>
nvm use <<parameters.node-version>>
node --version
npm --version
- unless: &node-install-non-windows
condition:
equal: [ <<parameters.os>>, windows ]
steps:
- node/install:
node-version: <<parameters.node-version>>
- attach_workspace:
at: .
- knodes-typedoc-orb/install:
Expand Down Expand Up @@ -199,8 +217,8 @@ jobs:
executor: <<parameters.os>>
parallelism: 2
steps:
- node/install:
node-version: <<parameters.node-version>>
- when: *node-install-windows
- unless: *node-install-non-windows
- attach_workspace:
at: .
- run:
Expand Down

0 comments on commit af4c142

Please sign in to comment.