Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update .npmrc location in release helper scripts #2303

Merged
merged 5 commits into from
May 6, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
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"
}
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"
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)