File tree Expand file tree Collapse file tree 4 files changed +22
-3
lines changed Expand file tree Collapse file tree 4 files changed +22
-3
lines changed Original file line number Diff line number Diff line change 4848 shell : pwsh
4949 run : ../PowerShellEditorServices/tools/installPSResources.ps1
5050
51+ - name : Deploy NPM configuration
52+ shell : pwsh
53+ run : Copy-Item .github/workflows/npmrc .npmrc
54+
5155 - uses : actions/setup-node@v4
5256 with :
5357 node-version : 18
6165 - name : Build, test and package
6266 shell : pwsh
6367 run : Invoke-Build
68+ env :
69+ NPM_AUTH_TOKEN : ${{ secrets.AZURE_NPM_TOKEN }}
6470
6571 - name : Upload build artifacts
6672 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 1010 workingFile : .npmrc
1111
1212- pwsh : |
13- npm ci --loglevel=error
13+ npm ci --loglevel=error --ignore-scripts
1414 Import-Module $(Build.SourcesDirectory)/tools/VersionTools.psm1
1515 $Version = Get-Version -RepositoryName vscode-powershell
1616 $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) } {
2626 Write-Host " `n ### Restoring vscode-powershell dependencies`n " - ForegroundColor Green
2727 # When in a CI build use the --loglevel=error parameter so that
2828 # 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 }
3131 } else {
3232 Invoke-BuildExec { & npm install }
3333 }
You can’t perform that action at this time.
0 commit comments