Skip to content

Commit 7ec87e1

Browse files
Damyan PetevDamyan Petev
authored andcommitted
ci: keep releasing scoped igniteui-react in licensed feed
1 parent 69bedea commit 7ec87e1

File tree

1 file changed

+55
-0
lines changed

1 file changed

+55
-0
lines changed

.azure-pipelines/release.yml

Lines changed: 55 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -211,6 +211,61 @@ jobs:
211211
workingFile: '$(Build.SourcesDirectory)/.npmrc'
212212
customEndpoint: 'public proget'
213213

214+
# components licensed feed release:
215+
- task: PowerShell@2
216+
displayName: 'Copy components package.json'
217+
inputs:
218+
targetType: inline
219+
script: Copy-Item -Path "scripts/components.package.json" -Destination "dist/package.json"
220+
221+
- task: PowerShell@2
222+
displayName: 'Copy MIT license'
223+
inputs:
224+
targetType: inline
225+
script: Copy-Item -Path ".azure-pipelines/artifacts/LICENSE_MIT" -Destination "dist/LICENSE"
226+
227+
- task: PowerShell@2
228+
displayName: 'Copy components README'
229+
inputs:
230+
targetType: inline
231+
script: Copy-Item -Path ".azure-pipelines/artifacts/README_Components.md" -Destination "dist/README.md"
232+
233+
- task: Npm@1
234+
displayName: 'npm version for tag $(Build.SourceBranchName)'
235+
continueOnError: false
236+
inputs:
237+
command: 'custom'
238+
workingDir: '$(Build.SourcesDirectory)/dist'
239+
verbose: ${{ parameters.verbose }}
240+
customCommand: 'version $(Build.SourceBranchName) --no-git-tag-version'
241+
242+
- task: Npm@1
243+
displayName: 'update package name to @infragistics/igniteui-react'
244+
continueOnError: false
245+
inputs:
246+
command: 'custom'
247+
workingDir: '$(Build.SourcesDirectory)/dist'
248+
verbose: ${{ parameters.verbose }}
249+
customCommand: 'pkg set name="@infragistics/igniteui-react"'
250+
251+
- task: Npm@1
252+
displayName: 'add deprecation postinstall script'
253+
continueOnError: false
254+
inputs:
255+
command: 'custom'
256+
workingDir: '$(Build.SourcesDirectory)/dist'
257+
verbose: ${{ parameters.verbose }}
258+
customCommand: 'pkg set scripts.postinstall=''echo "⚠️ Deprecated(@infragistics/igniteui-react): Now distributed as MIT, use igniteui-react from the npmjs.org registry instead."'''
259+
260+
- task: Npm@1
261+
displayName: '[IG Packages] npm publish'
262+
continueOnError: true
263+
inputs:
264+
command: 'custom'
265+
workingDir: '$(Build.SourcesDirectory)/dist'
266+
customCommand: 'publish --tag $(npmPublishTag) -userconfig ../.npmrc'
267+
verbose: ${{ parameters.verbose }}
268+
214269
# dock-manager licensed release:
215270
- task: PowerShell@2
216271
displayName: 'Copy dock-manager package.json'

0 commit comments

Comments
 (0)