-
Notifications
You must be signed in to change notification settings - Fork 22
Expand file tree
/
Copy pathapp-cd.yml
More file actions
93 lines (79 loc) · 2.83 KB
/
app-cd.yml
File metadata and controls
93 lines (79 loc) · 2.83 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
trigger: none
# This pipeline is meant to build specific branches for deployment. It's not meant to be a part of PR validation. Ensure that this pipeline is reserved for deployment purposes.
pr: none
name: $(BuildDefinitionName)_$(Year:yyyy).$(Month).$(DayOfMonth)$(Rev:.r)
pool:
vmImage: ubuntu-latest
variables:
- group: live-editing-samples-pat
- name: ReplacementText
value: '@infragistics/igniteui-angular-extras'
steps:
- checkout: self
persistCredentials: true
clean: true
fetchTags: true
- task: NodeTool@0
displayName: Use Node 22.x
inputs:
versionSpec: 22.x
# - task: Npm@1
# inputs:
# command: custom
# customCommand: 'install -g npm@latest'
# displayName: 'Upgrade npm to latest version'
- task: PowerShell@2
displayName: 'Replace with licensed angular-extras'
inputs:
targetType: 'inline'
script: |
# List of files to update
$files = @(
"projects/app-lob/src/app/grid-dynamic-chart-data/grid-dynamic-chart-data.component.ts",
"projects/app-lob/src/app/grid-dynamic-chart-data/data-analysis-dock-manager/data-analysis-dock-manager.component.ts",
"package.json")
foreach ($file in $files) {
(Get-Content -Path $file) -replace 'igniteui-angular-extras', '$(ReplacementText)' | Set-Content -Path $file
}
- task: CmdLine@2
displayName: 'Create empty .npmrc file in the project root dir'
inputs:
script: 'touch $(Build.SourcesDirectory)/.npmrc'
failOnStderr: true
- task: Npm@1
displayName: 'Register licensed npm registry in .npmrc'
inputs:
command: 'custom'
workingDir: '$(Build.SourcesDirectory)'
customCommand: 'config -L project set @infragistics:registry=https://packages.infragistics.com/npm/js-licensed/'
customEndpoint: 'public proget'
- task: npmAuthenticate@0
inputs:
workingFile: '$(Build.SourcesDirectory)/.npmrc'
customEndpoint: 'public proget'
- task: Npm@1
displayName: npm install
inputs:
command: install
workingDir: $(Build.SourcesDirectory)
verbose: false
customEndpoint: 'public proget'
env:
AZURE_PIPELINES: true
- task: CmdLine@2
displayName: Clone submodule
inputs:
script: git clone --recurse-submodules https://github.com/IgniteUI/igniteui-live-editing-samples igniteui-live-editing-samples
workingDirectory: $(Build.SourcesDirectory)
- template: templates/cd-template.yml
parameters:
customCommand: run generate-live-editing
gitHubToken: $(GITHUB_TOKEN)
workingDir: $(Build.SourcesDirectory)
submoduleDir: angular-demos
baseHref: \/angular-demos\/
targetFolder: dist/app
findRegex: angular-demos
npmBuildCommand: 'run build-ci'
repositoryfy: true
repositoryfyCommand: 'repositoryfyAngularDemos'