File tree 4 files changed +22
-3
lines changed
4 files changed +22
-3
lines changed Original file line number Diff line number Diff line change @@ -54,13 +54,19 @@ jobs:
54
54
cache : npm
55
55
cache-dependency-path : vscode-powershell/package-lock.json
56
56
57
+ - name : Deploy NPM configuration
58
+ shell : pwsh
59
+ run : Copy-Item .github/workflows/npmrc .npmrc
60
+
57
61
- name : Start X virtual framebuffer
58
62
if : matrix.os == 'ubuntu-latest'
59
63
run : /usr/bin/Xvfb :99 -screen 0 1024x768x24 > /dev/null 2>&1 &
60
64
61
65
- name : Build, test and package
62
66
shell : pwsh
63
67
run : Invoke-Build
68
+ env :
69
+ NPM_AUTH_TOKEN : ${{ secrets.AZURE_NPM_TOKEN }}
64
70
65
71
- name : Upload build artifacts
66
72
uses : actions/upload-artifact@v4
Original file line number Diff line number Diff line change
1
+ ; This requires NPM_AUTH_TOKEN to be available as a base64 encoded secret, since
2
+ ; Azure DevOps does not support actual auth tokens.
3
+
4
+ ; begin auth token
5
+ //pkgs.dev.azure.com/powershell-rel/PowerShellEditorServices/_packaging/PSESFeed/npm/registry/:username=powershell-rel
6
+ //pkgs.dev.azure.com/powershell-rel/PowerShellEditorServices/_packaging/PSESFeed/npm/registry/:_password=${NPM_AUTH_TOKEN}
7
+ //pkgs.dev.azure.com/powershell-rel/PowerShellEditorServices/_packaging/PSESFeed/npm/registry/:email=powershell-rel
8
+ //pkgs.dev.azure.com/powershell-rel/PowerShellEditorServices/_packaging/PSESFeed/npm/:username=powershell-rel
9
+ //pkgs.dev.azure.com/powershell-rel/PowerShellEditorServices/_packaging/PSESFeed/npm/:_password=${NPM_AUTH_TOKEN}
10
+ //pkgs.dev.azure.com/powershell-rel/PowerShellEditorServices/_packaging/PSESFeed/npm/:email=powershell-rel
11
+ ; end auth token
12
+ registry=https://pkgs.dev.azure.com/powershell-rel/PowerShellEditorServices/_packaging/PSESFeed/npm/registry/
13
+ always-auth=true
Original file line number Diff line number Diff line change 10
10
workingFile : .npmrc
11
11
12
12
- pwsh : |
13
- npm ci --loglevel=error
13
+ npm ci --loglevel=error --ignore-scripts
14
14
Import-Module $(Build.SourcesDirectory)/tools/VersionTools.psm1
15
15
$Version = Get-Version -RepositoryName vscode-powershell
16
16
$PackageVersion = Get-MajorMinorPatch -Version $Version
Original file line number Diff line number Diff line change @@ -26,8 +26,8 @@ task RestoreNodeModules -If { !(Test-Path ./node_modules) } {
26
26
Write-Host " `n ### Restoring vscode-powershell dependencies`n " - ForegroundColor Green
27
27
# When in a CI build use the --loglevel=error parameter so that
28
28
# package install warnings don't cause PowerShell to throw up
29
- if ($env: TF_BUILD ) {
30
- Invoke-BuildExec { & npm ci -- loglevel= error }
29
+ if ($env: CI -or $ env: TF_BUILD ) {
30
+ Invoke-BuildExec { & npm ci -- loglevel= error -- ignore - scripts }
31
31
} else {
32
32
Invoke-BuildExec { & npm install }
33
33
}
You can’t perform that action at this time.
0 commit comments