Skip to content

Commit af4c142

Browse files
committed
ci(circleci): fix windows NVM not using correct version
1 parent 34a57fb commit af4c142

File tree

1 file changed

+22
-4
lines changed

1 file changed

+22
-4
lines changed

.circleci/config.yml

+22-4
Original file line numberDiff line numberDiff line change
@@ -157,8 +157,26 @@ jobs:
157157
type: string
158158
executor: <<parameters.os>>
159159
steps:
160-
- node/install:
161-
node-version: <<parameters.node-version>>
160+
- when: &node-install-windows
161+
condition:
162+
equal: [ <<parameters.os>>, windows ]
163+
steps:
164+
- run:
165+
name: Install Node <<parameters.node-version>>
166+
shell: bash.exe
167+
command: |
168+
nvm list
169+
nvm install <<parameters.node-version>>
170+
nvm use <<parameters.node-version>>
171+
172+
node --version
173+
npm --version
174+
- unless: &node-install-non-windows
175+
condition:
176+
equal: [ <<parameters.os>>, windows ]
177+
steps:
178+
- node/install:
179+
node-version: <<parameters.node-version>>
162180
- attach_workspace:
163181
at: .
164182
- knodes-typedoc-orb/install:
@@ -199,8 +217,8 @@ jobs:
199217
executor: <<parameters.os>>
200218
parallelism: 2
201219
steps:
202-
- node/install:
203-
node-version: <<parameters.node-version>>
220+
- when: *node-install-windows
221+
- unless: *node-install-non-windows
204222
- attach_workspace:
205223
at: .
206224
- run:

0 commit comments

Comments
 (0)