Skip to content

Commit

Permalink
Add Azure NPM registry to CI test workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
andyleejordan committed Feb 13, 2024
1 parent 62ad186 commit 7a4a0e2
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/ci-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,8 @@ jobs:
- name: Build, test and package
shell: pwsh
run: Invoke-Build
env:
NODE_AUTH_TOKEN: ${{ secrets.AZURE_NPM_TOKEN }}

- name: Upload build artifacts
uses: actions/upload-artifact@v4
Expand Down
2 changes: 1 addition & 1 deletion .vsts-ci/templates/publish-markets.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ steps:
workingFile: .npmrc

- pwsh: |
npm ci --loglevel=error
npm ci --loglevel=error --ignore-scripts
Import-Module $(Build.SourcesDirectory)/tools/VersionTools.psm1
$Version = Get-Version -RepositoryName vscode-powershell
$PackageVersion = Get-MajorMinorPatch -Version $Version
Expand Down
4 changes: 2 additions & 2 deletions vscode-powershell.build.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,8 @@ task RestoreNodeModules -If { !(Test-Path ./node_modules) } {
Write-Host "`n### Restoring vscode-powershell dependencies`n" -ForegroundColor Green
# When in a CI build use the --loglevel=error parameter so that
# package install warnings don't cause PowerShell to throw up
if ($env:TF_BUILD) {
Invoke-BuildExec { & npm ci --loglevel=error }
if ($env:CI -or $env:TF_BUILD) {
Invoke-BuildExec { & npm ci --loglevel=error --ignore-scripts }
} else {
Invoke-BuildExec { & npm install }
}
Expand Down

0 comments on commit 7a4a0e2

Please sign in to comment.