Skip to content

Commit

Permalink
Update .npmrc location in release helper scripts (#2303)
Browse files Browse the repository at this point in the history
* Update .npmrc location

* Changefile

* Update @microsoft-teams-js-b63da2d9-3e02-4b83-9664-78aa8f49c713.json

* use new scripts for onebranch pipelines

---------

Co-authored-by: AE ( ͡ಠ ʖ̯ ͡ಠ) <36546967+AE-MS@users.noreply.github.com>
  • Loading branch information
2 people authored and alexneyman-MSFT committed May 9, 2024
1 parent a6d68fc commit cf918ed
Show file tree
Hide file tree
Showing 6 changed files with 16 additions and 4 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"type": "none",
"comment": "Updated the `.npmrc` location for the release pipeline",
"packageName": "@microsoft/teams-js",
"email": "jeklouda@microsoft.com",
"dependentChangeType": "none"
}
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/_OfficeDev.microsoft-teams-library-js/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"
2 changes: 1 addition & 1 deletion 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/_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 cf918ed

Please sign in to comment.