mirror of
https://github.com/Heretek-AI/open-code-review.git
synced 2026-11-07 10:56:07 -10:00
* ci(release): publish to npm via trusted publishing Replace the NPM_TOKEN secret with GitHub OIDC token exchange, and add a manually triggered job that verifies every package's trusted publisher configuration without publishing anything. npm only accepts an OIDC exchange from a cloud-hosted runner, so those two jobs run on ubuntu-latest while the Go build matrix stays on self-hosted. * fix(ci): harden npm trusted publishing checks * fix(test): encode all slashes in release contract URLs
46 lines
1.6 KiB
JSON
46 lines
1.6 KiB
JSON
{
|
|
"name": "@alibaba-group/open-code-review",
|
|
"version": "0.0.0",
|
|
"description": "OpenCodeReview CLI — AI-powered code review tool",
|
|
"bin": {
|
|
"ocr": "bin/ocr.js"
|
|
},
|
|
"files": [
|
|
"bin/ocr.js",
|
|
"scripts/install.js",
|
|
"scripts/update.js",
|
|
"scripts/version.js",
|
|
"scripts/platform.js",
|
|
"imgs/"
|
|
],
|
|
"scripts": {
|
|
"postinstall": "node scripts/install.js",
|
|
"test:github-actions": "node scripts/github-actions/post-review-comments.test.js && node scripts/github-actions/check-translation-sync.test.js && node scripts/github-actions/action-contract.test.js && node scripts/github-actions/check-plugin-contract.test.js && node scripts/github-actions/release-contract.test.js",
|
|
"test:update": "node scripts/version.test.js",
|
|
"test:launcher": "node bin/ocr.test.js"
|
|
},
|
|
"repository": {
|
|
"type": "git",
|
|
"url": "git+https://github.com/alibaba/open-code-review.git"
|
|
},
|
|
"publishConfig": {
|
|
"access": "public"
|
|
},
|
|
"ocrConfig": {
|
|
"urlPattern": "https://github.com/alibaba/open-code-review/releases/download/v{version}/opencodereview-{os}-{arch}",
|
|
"checksumPattern": "https://github.com/alibaba/open-code-review/releases/download/v{version}/sha256sum.txt"
|
|
},
|
|
"optionalDependencies": {
|
|
"@alibaba-group/ocr-darwin-arm64": "0.0.0",
|
|
"@alibaba-group/ocr-darwin-x64": "0.0.0",
|
|
"@alibaba-group/ocr-linux-arm64": "0.0.0",
|
|
"@alibaba-group/ocr-linux-x64": "0.0.0",
|
|
"@alibaba-group/ocr-win32-arm64": "0.0.0",
|
|
"@alibaba-group/ocr-win32-x64": "0.0.0"
|
|
},
|
|
"engines": {
|
|
"node": ">=14"
|
|
},
|
|
"license": "Apache-2.0"
|
|
}
|