File tree Expand file tree Collapse file tree 1 file changed +22
-4
lines changed Expand file tree Collapse file tree 1 file changed +22
-4
lines changed Original file line number Diff line number Diff 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 : cmd.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 :
You can’t perform that action at this time.
0 commit comments