diff --git a/tools/releases/deprecate-release.yml b/tools/releases/deprecate-release.yml new file mode 100644 index 0000000000..9bef495c75 --- /dev/null +++ b/tools/releases/deprecate-release.yml @@ -0,0 +1,68 @@ +trigger: none +resources: + repositories: + - repository: GovernedTemplates + type: git + name: OneBranch.Pipelines/GovernedTemplates + ref: refs/heads/main + pipelines: + - pipeline: microsoft-teams-library-js-pipeline + source: 'microsoft-teams-library-js/M365 Platform/App SDK/OfficeDev.microsoft-teams-library-js' + project: ISS +variables: + - name: System.Debug + value: true +extends: + template: v2/Microsoft.Official.yml@GovernedTemplates + parameters: + platform: + name: m365 + workload: Substrate + serviceTreeId: $(serviceTreeId) + serviceGroupName: Platform + stages: + - stage: Prod_Lockbox_Approval_Deployment + displayName: Lockbox Approval/Deployment + dependsOn: [] + variables: + stage_type: deployment + azure_subscription_ids: $(subscriptionId) + jobs: + - job: Agent_job + pool: + type: release + steps: + - download: microsoft-teams-library-js-pipeline + - task: prepare-deployment@1 + displayName: + inputs: + taskType: credentialFetchTaskAzureRM + armserviceconnection: $(serviceConnectionId) + subscriptionid: $(subscriptionId) + - task: AssetRetention@3 + displayName: ARtifact Retention Orchestrator Workflow (ARROW) + inputs: + ArrowServiceConnection: $(arrowServiceConnectionId) + IsShipped: true + - task: AzureKeyVault@2 + displayName: 'Azure Key Vault: $(keyVaultName)' + inputs: + ConnectedServiceName: $(serviceConnectionId) + KeyVaultName: $(keyVaultName) + SecretsFilter: $(keyVaultSecretsFilter) + - task: NodeTool@0 + displayName: Use Node 18.x + inputs: + versionSpec: 18.x + - task: PowerShell@2 + displayName: Update npmrc with NPM-TOKEN + inputs: + targetType: 'inline' + script: Set-Content -Path $(PIPELINE.WORKSPACE)/microsoft-teams-library-js-pipeline/NPMFeed/.npmrc -Value "//registry.npmjs.org/:_authToken=$(NPM-TOKEN)" + - task: Npm@1 + displayName: Publish to npm (tag beta) KV + inputs: + command: custom + workingDir: $(PIPELINE.WORKSPACE)/microsoft-teams-library-js-pipeline/NPMFeed + verbose: false + customCommand: deprecate @microsoft/teams-js@3.0.* "Package no longer supported. Use at your own risk"