File tree Expand file tree Collapse file tree 1 file changed +6
-11
lines changed
hugoalh.GitHubActionsToolkit/module Expand file tree Collapse file tree 1 file changed +6
-11
lines changed Original file line number Diff line number Diff line change @@ -150,17 +150,12 @@ Function Test-NodeJsEnvironment {
150
150
Catch {
151
151
Throw ' Unable to find NodeJS!'
152
152
}
153
- Try {
154
- If ($NodeJsVersionMinimum -gt [SemVer ]::Parse((
155
- node -- no- deprecation -- no- warnings -- eval= ' console.log(JSON.stringify(process.versions));' |
156
- Join-String - Separator " `n " |
157
- ConvertFrom-Json - Depth 100 |
158
- Select-Object - ExpandProperty ' node'
159
- ))) {
160
- Throw
161
- }
162
- }
163
- Catch {
153
+ If ($NodeJsVersionMinimum -gt [SemVer ]::Parse((
154
+ node -- no- deprecation -- no- warnings -- eval= ' console.log(JSON.stringify(process.versions));' |
155
+ Join-String - Separator " `n " |
156
+ ConvertFrom-Json - Depth 100 |
157
+ Select-Object - ExpandProperty ' node'
158
+ ))) {
164
159
Throw ' NodeJS is not match the requirement!'
165
160
}
166
161
}
You can’t perform that action at this time.
0 commit comments