Skip to content

Commit 6cf8a2a

Browse files
authored
Fix error message in the build pipeline (#389)
Build pipeline fails when the version information in the `version.ts` mismatches with the version information in the `package.json` _Example error can be seen here; https://github.com/microsoft/azure-devops-mcp/actions/runs/16681842913/job/47222110601?pr=387#step:9:21_ Error message reads `Version mismatch detected. Please run 'npm run build' to update version.ts and add changes to the commit.` But, there is no `npm run build` command in the `static-code-analysis` job, and also, `npm run build` would not fix this issue. Error message fails to inform user to update version information in the `version.ts` file. This PR fixes it. ## GitHub issue number N/A ## **Associated Risks** None ## ✅ **PR Checklist** - [x] **I have read the [contribution guidelines](https://github.com/microsoft/azure-devops-mcp/blob/main/CONTRIBUTING.md)** - [x] **I have read the [code of conduct guidelines](https://github.com/microsoft/azure-devops-mcp/blob/main/CODE_OF_CONDUCT.md)** - [x] Title of the pull request is clear and informative. - [x] 👌 Code hygiene - [x] 🔭 Telemetry added, updated, or N/A - [x] 📄 Documentation added, updated, or N/A - [x] 🛡️ Automated tests added, or N/A ## 🧪 **How did you test it?** Ran the commands on local computer
1 parent 3e516cf commit 6cf8a2a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.github/workflows/build.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ jobs:
114114
run: |
115115
git diff --exit-code ./src/version.ts
116116
if (!$?) {
117-
Write-Host "Version mismatch detected. Please run 'npm run build' to update version.ts and add changes to the commit."
117+
Write-Host "Version mismatch detected. Please ensure that the version information in version.ts is up to date with package.json."
118118
exit 1
119119
}
120120
git diff --exit-code ./package-lock.json

0 commit comments

Comments
 (0)