Skip to content

Commit d582708

Browse files
committed
Fix NodeJS test
1 parent 2511fed commit d582708

File tree

6 files changed

+7
-8
lines changed

6 files changed

+7
-8
lines changed

.github/ISSUE_TEMPLATE/bug-report.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ body:
1818
description: "What versions are affected? Versions must be listed as supported in the Security Policy (file: `SECURITY.md`)."
1919
multiple: true
2020
options:
21+
- "v1.3.1"
2122
- "v1.3.0"
2223
- "v1.2.3"
2324
- "v1.2.2"

hugoalh.GitHubActionsToolkit/hugoalh.GitHubActionsToolkit.psd1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
RootModule = 'hugoalh.GitHubActionsToolkit.psm1'
44

55
# Version number of this module.
6-
ModuleVersion = '1.3.0'
6+
ModuleVersion = '1.3.1'
77

88
# Supported PSEditions
99
# CompatiblePSEditions = @()

hugoalh.GitHubActionsToolkit/module/environment-variable.psm1

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -105,8 +105,7 @@ Function Set-EnvironmentVariable {
105105
Return
106106
}
107107
If (($Scope -band [GitHubActionsEnvironmentVariableScopes]::Current) -ieq [GitHubActionsEnvironmentVariableScopes]::Current) {
108-
[System.Environment]::SetEnvironmentVariable($Name, $Value) |
109-
Out-Null
108+
$Null = [System.Environment]::SetEnvironmentVariable($Name, $Value)
110109
}
111110
If (($Scope -band [GitHubActionsEnvironmentVariableScopes]::Subsequent) -ieq [GitHubActionsEnvironmentVariableScopes]::Subsequent) {
112111
If ($UseLegacyMethod) {

hugoalh.GitHubActionsToolkit/module/nodejs-test.psm1

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ Whether to redo this test by ignore the cached test result.
1515
[Boolean] Test result.
1616
#>
1717
Function Test-NodeJsEnvironment {
18-
[CmdletBinding()]
18+
[CmdletBinding(HelpUri = 'https://github.com/hugoalh-studio/ghactions-toolkit-powershell/wiki/api_function_testgithubactionsnodejsenvironment')]
1919
[OutputType([Boolean])]
2020
Param (
2121
[Alias('Redo')][Switch]$Retest,
@@ -29,8 +29,7 @@ Function Test-NodeJsEnvironment {
2929
$Script:EnvironmentResult = $False
3030
$Script:EnvironmentTested = $False
3131
Try {
32-
Get-Command -Name 'node' -CommandType 'Application' -ErrorAction 'Stop' |# `Get-Command` will throw error when nothing is found.
33-
Out-Null# No need the result.
32+
$Null = Get-Command -Name 'node' -CommandType 'Application' -ErrorAction 'Stop'# `Get-Command` will throw error when nothing is found.
3433
[String]$ExpressionNodeJsVersionResult = node --no-deprecation --no-warnings --version |
3534
Join-String -Separator "`n"
3635
If (

hugoalh.GitHubActionsToolkit/module/nodejs-wrapper/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@hugoalh/ghactions-toolkit-powershell-nodejs-wrapper-distribution",
3-
"version": "1.3.0",
3+
"version": "1.3.1",
44
"description": "A PowerShell module to provide a better and easier way for GitHub Actions to communicate with the runner machine, and the toolkit for developing GitHub Actions in PowerShell.",
55
"keywords": [
66
"gh-actions",

nodejs-wrapper-source/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@hugoalh/ghactions-toolkit-powershell-nodejs-wrapper-source",
3-
"version": "1.3.0",
3+
"version": "1.3.1",
44
"description": "A PowerShell module to provide a better and easier way for GitHub Actions to communicate with the runner machine, and the toolkit for developing GitHub Actions in PowerShell.",
55
"keywords": [
66
"gh-actions",

0 commit comments

Comments
 (0)