Skip to content

Commit 1125783

Browse files
committed
fix: windows pipeline fix
1 parent 33162c8 commit 1125783

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

.gitlab-ci.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -165,6 +165,8 @@ build:windows:
165165
- windows
166166
before_script:
167167
- mkdir -Force "$CI_PROJECT_DIR/tmp"
168+
- Import-Module $env:ChocolateyInstall\helpers\chocolateyProfile.psm1 # Added line
169+
168170
script:
169171
- .\scripts\choco-install.ps1
170172
- refreshenv

scripts/choco-install.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ New-Item -Path "${PSScriptRoot}\..\tmp\chocolatey" -ItemType "directory" -ErrorA
2222
choco source add --name="cache" --source="${PSScriptRoot}\..\tmp\chocolatey" --priority=1
2323

2424
# Install nodejs v20.5.1 (will use cache if exists)
25-
$nodejs = "nodejs.install"
25+
$nodejs = "nodejs"
2626
choco install "$nodejs" --version="20.5.1" --require-checksums -y
2727
# Internalise nodejs to cache if doesn't exist
2828
if ( -not (Test-Path -Path "${PSScriptRoot}\..\tmp\chocolatey\$nodejs\$nodejs.20.5.1.nupkg" -PathType Leaf) ) {

0 commit comments

Comments
 (0)