|
| 1 | +trigger: |
| 2 | + branches: |
| 3 | + include: |
| 4 | + - master |
| 5 | + - vnext |
| 6 | + |
| 7 | +# 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. |
| 8 | +pr: none |
| 9 | + |
| 10 | +name: $(BuildDefinitionName)_$(Year:yyyy).$(Month).$(DayOfMonth)$(Rev:.r) |
| 11 | + |
| 12 | +pool: |
| 13 | + vmImage: ubuntu-latest |
| 14 | + |
| 15 | +variables: |
| 16 | + githubToken: <value> # Add a GitHub token in Libraries |
| 17 | + ReplacementText: '@infragistics/igniteui-angular-extras' |
| 18 | + |
| 19 | +steps: |
| 20 | + - checkout: self |
| 21 | + clean: true |
| 22 | + fetchTags: true |
| 23 | + |
| 24 | + - task: NodeTool@0 |
| 25 | + displayName: Use Node 20.x |
| 26 | + inputs: |
| 27 | + versionSpec: 20.x |
| 28 | + |
| 29 | + - task: PowerShell@2 |
| 30 | + displayName: 'Replace with licensed angular-extras' |
| 31 | + inputs: |
| 32 | + targetType: 'inline' |
| 33 | + script: | |
| 34 | + # List of files to update |
| 35 | + $files = @( |
| 36 | + "projects/app-lob/src/app/grid-dynamic-chart-data/grid-dynamic-chart-data.module.ts", |
| 37 | + "projects/app-lob/src/app/grid-dynamic-chart-data/grid-dynamic-chart-data.component.ts", |
| 38 | + "projects/app-lob/src/app/grid-dynamic-chart-data/data-analysis-dock-manager/data-analysis-dock-manager.component.ts", |
| 39 | + "projects/app-lob/src/app/app.module.ts", |
| 40 | + "package.json") |
| 41 | + foreach ($file in $files) { |
| 42 | + (Get-Content -Path $file) -replace 'igniteui-angular-extras', '$(ReplacementText)' | Set-Content -Path $file |
| 43 | + } |
| 44 | + |
| 45 | + - task: CmdLine@2 |
| 46 | + displayName: 'Create empty .npmrc file in the project root dir' |
| 47 | + inputs: |
| 48 | + script: 'touch $(Build.SourcesDirectory)/.npmrc' |
| 49 | + failOnStderr: true |
| 50 | + |
| 51 | + - task: Npm@1 |
| 52 | + displayName: 'Register licensed npm registry in .npmrc' |
| 53 | + inputs: |
| 54 | + command: 'custom' |
| 55 | + workingDir: '$(Build.SourcesDirectory)' |
| 56 | + customCommand: 'config -L project set @infragistics:registry=https://packages.infragistics.com/npm/js-licensed/' |
| 57 | + customEndpoint: 'public proget' |
| 58 | + |
| 59 | + - task: npmAuthenticate@0 |
| 60 | + inputs: |
| 61 | + workingFile: '$(Build.SourcesDirectory)/.npmrc' |
| 62 | + customEndpoint: 'public proget' |
| 63 | + |
| 64 | + - task: Npm@1 |
| 65 | + displayName: npm install |
| 66 | + inputs: |
| 67 | + command: install |
| 68 | + workingDir: $(Build.SourcesDirectory) |
| 69 | + verbose: false |
| 70 | + customEndpoint: 'public proget' |
| 71 | + env: |
| 72 | + AZURE_PIPELINES: true |
| 73 | + |
| 74 | + - task: CmdLine@2 |
| 75 | + displayName: Clone submodule |
| 76 | + inputs: |
| 77 | + script: git clone --recurse-submodules https://github.com/IgniteUI/igniteui-live-editing-samples igniteui-live-editing-samples |
| 78 | + workingDirectory: $(Build.SourcesDirectory) |
| 79 | + |
| 80 | + - template: templates/cd-template.yml |
| 81 | + parameters: |
| 82 | + customCommand: run generate-live-editing:app-crm |
| 83 | + workingDir: $(Build.SourcesDirectory) |
| 84 | + submoduleDir: angular-demos-crm |
| 85 | + baseHref: \/angular-demos-grid-crm\/ |
| 86 | + targetFolder: dist/app-crm |
| 87 | + findRegex: angular-demos |
| 88 | + npmBuildCommand: 'run build-ci:app-crm --loglevel verbose' |
| 89 | + repositoryfy: false |
0 commit comments