Skip to content

Commit f3fa754

Browse files
Re-instate steps for Licensed packages & use npm install
npm install instead of npm ci - due to some package balagans
1 parent f9555de commit f3fa754

File tree

1 file changed

+33
-33
lines changed

1 file changed

+33
-33
lines changed

azure-pipelines/build-pipeline.yml

Lines changed: 33 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -46,45 +46,45 @@ stages:
4646
customEndpoint: 'public proget'
4747

4848
- task: Npm@1
49-
displayName: 'npm ci --legacy-peer-deps'
49+
displayName: 'npm install --legacy-peer-deps'
5050
inputs:
5151
command: custom
5252
workingDir: '$(Build.SourcesDirectory)'
53-
customCommand: 'ci --legacy-peer-deps'
53+
customCommand: 'install --legacy-peer-deps'
5454
customEndpoint: 'public proget'
5555

56-
# - task: Npm@1
57-
# displayName: 'Register licensed npm registry in .npmrc'
58-
# inputs:
59-
# command: 'custom'
60-
# workingDir: '$(Build.SourcesDirectory)'
61-
# customCommand: 'config -L project set @infragistics:registry=http://proget.infragistics.local:81/npm/IgniteUILicensed/'
62-
# customEndpoint: 'internal licensed proget'
56+
- task: Npm@1
57+
displayName: 'Register licensed npm registry in .npmrc'
58+
inputs:
59+
command: 'custom'
60+
workingDir: '$(Build.SourcesDirectory)'
61+
customCommand: 'config -L project set @infragistics:registry=http://proget.infragistics.local:81/npm/IgniteUILicensed/'
62+
customEndpoint: 'internal licensed proget'
6363

64-
# - task: PowerShell@2
65-
# displayName: 'Uninstall all IG trial packages & re-install their licensed variations'
66-
# inputs:
67-
# failOnStderr: true
68-
# showWarnings: true
69-
# workingDirectory: '$(Build.SourcesDirectory)'
70-
# targetType: 'inline'
71-
# script: |
72-
# Get-Content -Path .\.npmrc
73-
# $packageJson = Get-Content -Raw .\package.json | ConvertFrom-Json
74-
# $npmUninstallPackages = "npm uninstall --save "
75-
# $npmInstallPackages = "npm install --legacy-peer-deps "
76-
# $packageJson.dependencies.PSObject.Properties | `
77-
# Where-Object {
78-
# $_.Name.StartsWith("igniteui-webcomponents-") -or $_.Name.StartsWith("igniteui-dockmanager") `
79-
# } | `
80-
# ForEach-Object { `
81-
# $npmUninstallPackages += $_.Name + " "
82-
# $npmInstallPackages += "@infragistics/" + $_.Name + "@" + $_.Value + " "
83-
# }
84-
# Write-Host $npmUninstallPackages
85-
# Write-Host $npmInstallPackages
86-
# Invoke-Expression -Command “$npmUninstallPackages”
87-
# Invoke-Expression -Command “$npmInstallPackages”
64+
- task: PowerShell@2
65+
displayName: 'Uninstall all IG trial packages & re-install their licensed variations'
66+
inputs:
67+
failOnStderr: true
68+
showWarnings: true
69+
workingDirectory: '$(Build.SourcesDirectory)'
70+
targetType: 'inline'
71+
script: |
72+
Get-Content -Path .\.npmrc
73+
$packageJson = Get-Content -Raw .\package.json | ConvertFrom-Json
74+
$npmUninstallPackages = "npm uninstall --save "
75+
$npmInstallPackages = "npm install --legacy-peer-deps "
76+
$packageJson.dependencies.PSObject.Properties | `
77+
Where-Object {
78+
$_.Name.StartsWith("igniteui-webcomponents-") -or $_.Name.StartsWith("igniteui-dockmanager") `
79+
} | `
80+
ForEach-Object { `
81+
$npmUninstallPackages += $_.Name + " "
82+
$npmInstallPackages += "@infragistics/" + $_.Name + "@" + $_.Value + " "
83+
}
84+
Write-Host $npmUninstallPackages
85+
Write-Host $npmInstallPackages
86+
Invoke-Expression -Command “$npmUninstallPackages”
87+
Invoke-Expression -Command “$npmInstallPackages”
8888
8989
- task: Npm@1
9090
displayName: 'npm run build'

0 commit comments

Comments
 (0)