Skip to content

Commit

Permalink
use new scripts for onebranch pipelines
Browse files Browse the repository at this point in the history
  • Loading branch information
jekloudaMSFT committed May 3, 2024
1 parent 5d4a4f3 commit a7c645f
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 5 deletions.
1 change: 1 addition & 0 deletions packages/teams-js/scripts/add-npmrc-npmtoken-onebranch.ps1
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Set-Content -Path $Env:SYSTEM_DEFAULTWORKINGDIRECTORY/microsoft-teams-library-js-pipeline/NPMFeed/.npmrc -Value "//registry.npmjs.org/:_authToken=$Env:NPM_TOKEN"
2 changes: 1 addition & 1 deletion packages/teams-js/scripts/add-npmrc-npmtoken.ps1
Original file line number Diff line number Diff line change
@@ -1 +1 @@
Set-Content -Path $Env:SYSTEM_DEFAULTWORKINGDIRECTORY/microsoft-teams-library-js-pipeline/NPMFeed/.npmrc -Value "//registry.npmjs.org/:_authToken=$Env:NPM_TOKEN"
Set-Content -Path $Env:SYSTEM_DEFAULTWORKINGDIRECTORY/_OfficeDev.microsoft-teams-library-js/NPMFeed/.npmrc -Value "//registry.npmjs.org/:_authToken=$Env:NPM_TOKEN"
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
$version = Get-ChildItem -Path $Env:SYSTEM_DEFAULTWORKINGDIRECTORY/microsoft-teams-library-js-pipeline/CDNFeed -Directory -Name
Write-Host "Releasing version $version"
Write-Host "CDN: https://res-sdf.cdn.office.net/teams-js/$version/js/MicrosoftTeams.min.js "
Write-Host "NPM: https://www.npmjs.com/package/@microsoft/teams-js/v/$version"
4 changes: 2 additions & 2 deletions packages/teams-js/scripts/view-published-packages-urls.ps1
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
$version = Get-ChildItem -Path $Env:SYSTEM_DEFAULTWORKINGDIRECTORY/microsoft-teams-library-js-pipeline/CDNFeed -Directory -Name
$version = Get-ChildItem -Path $Env:SYSTEM_DEFAULTWORKINGDIRECTORY/_OfficeDev.microsoft-teams-library-js/CDNFeed -Directory -Name
Write-Host "Releasing version $version"
Write-Host "CDN: https://res-sdf.cdn.office.net/teams-js/$version/js/MicrosoftTeams.min.js "
Write-Host "NPM: https://www.npmjs.com/package/@microsoft/teams-js/v/$version"
Write-Host "NPM: https://www.npmjs.com/package/@microsoft/teams-js/v/$version"
4 changes: 2 additions & 2 deletions tools/releases/sdf-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ extends:
- task: PowerShell@2
displayName: Update npmrc with NPM-TOKEN
inputs:
filePath: $(PIPELINE.WORKSPACE)\microsoft-teams-library-js-pipeline\scripts\add-npmrc-npmtoken.ps1
filePath: $(PIPELINE.WORKSPACE)\microsoft-teams-library-js-pipeline\scripts\add-npmrc-npmtoken-onebranch.ps1
- task: Npm@1
displayName: Publish to npm (tag beta) KV
inputs:
Expand All @@ -76,5 +76,5 @@ extends:
- task: PowerShell@2
displayName: View Published Package URLs
inputs:
filePath: $(PIPELINE.WORKSPACE)\microsoft-teams-library-js-pipeline\scripts\view-published-packages-urls.ps1
filePath: $(PIPELINE.WORKSPACE)\microsoft-teams-library-js-pipeline\scripts\view-published-packages-urls-onebranch.ps1
arguments: $(System.DefaultWorkingDirectory)

0 comments on commit a7c645f

Please sign in to comment.