|
| 1 | +trigger: none |
| 2 | + |
| 3 | +schedules: |
| 4 | + - cron: "0 0 * * 1" # Runs every Monday at 00:00 UTC |
| 5 | + displayName: Release Latest Version |
| 6 | + branches: |
| 7 | + include: |
| 8 | + - main |
| 9 | + |
| 10 | +jobs: |
| 11 | + - job: ReleaseLatest |
| 12 | + pool: |
| 13 | + vmImage: "windows-latest" |
| 14 | + |
| 15 | + steps: |
| 16 | + - task: UseNode@1 |
| 17 | + inputs: |
| 18 | + version: "20" |
| 19 | + checkLatest: false |
| 20 | + retryCountOnDownloadFails: 2 |
| 21 | + |
| 22 | + - task: npmAuthenticate@0 |
| 23 | + inputs: |
| 24 | + workingFile: .npmrc |
| 25 | + displayName: Authenticate with npm registry |
| 26 | + |
| 27 | + - task: Npm@1 |
| 28 | + inputs: |
| 29 | + command: "ci" |
| 30 | + displayName: Install clean dependencies |
| 31 | + |
| 32 | + - task: Npm@1 |
| 33 | + inputs: |
| 34 | + command: "custom" |
| 35 | + customCommand: "run build" |
| 36 | + displayName: Build the project |
| 37 | + |
| 38 | + - task: EsrpCodeSigning@1 |
| 39 | + displayName: "Sign Binaries" |
| 40 | + inputs: |
| 41 | + ConnectedServiceName: "ESRP Service" |
| 42 | + FolderPath: "$(Build.ArtifactStagingDirectory)" |
| 43 | + Pattern: | |
| 44 | + **/*.js |
| 45 | + **/*.ts |
| 46 | + signConfigType: "inlineSignParams" |
| 47 | + inlineOperation: | |
| 48 | + [ |
| 49 | + { |
| 50 | + "KeyCode": "CP-230012", |
| 51 | + "OperationCode": "SigntoolSign", |
| 52 | + "Parameters": { |
| 53 | + "OpusName": "Azure DevOps MCP", |
| 54 | + "OpusInfo": "https://github.com/microsoft/azure-devops-mcp", |
| 55 | + "FileDigest": "/fd SHA256", |
| 56 | + "PageHash": "/NPH", |
| 57 | + "TimeStamp": "/tr http://timestamp.digicert.com /td SHA256" |
| 58 | + }, |
| 59 | + "ToolName": "signtool.exe", |
| 60 | + "ToolVersion": "6.2.9304.0" |
| 61 | + }, |
| 62 | + { |
| 63 | + "KeyCode": "CP-230012", |
| 64 | + "OperationCode": "SigntoolVerify", |
| 65 | + "Parameters": {}, |
| 66 | + "ToolName": "signtool.exe", |
| 67 | + "ToolVersion": "6.2.9304.0" |
| 68 | + } |
| 69 | + ] |
| 70 | + SessionTimeout: "60" |
| 71 | + MaxConcurrency: "10" |
| 72 | + |
| 73 | + - task: Npm@1 |
| 74 | + inputs: |
| 75 | + command: "custom" |
| 76 | + customCommand: "publish --access public --registry=https://registry.npmjs.org/" |
| 77 | + displayName: Publish package to public npmjs under @azure-devops org scope |
0 commit comments