working to move release into github actions

This commit is contained in:
mkorwel
2025-07-01 09:36:28 -05:00
parent a4062cb44a
commit dc83ad6752
12 changed files with 453 additions and 155 deletions
+7 -2
View File
@@ -19,9 +19,14 @@ if (!fs.existsSync(packageJsonPath)) {
errors.push(`Error: package.json not found in ${process.cwd()}`);
} else {
const packageJson = JSON.parse(fs.readFileSync(packageJsonPath, 'utf8'));
if (packageJson.repository !== 'google-gemini/gemini-cli') {
if (
!packageJson.repository ||
typeof packageJson.repository !== 'object' ||
packageJson.repository.type !== 'git' ||
!packageJson.repository.url.includes('google-gemini/gemini-cli')
) {
errors.push(
`Error: The "repository" field in ${packageJsonPath} must be "google-gemini/gemini-cli".`,
`Error: The "repository" field in ${packageJsonPath} must be an object pointing to the "google-gemini/gemini-cli" git repository.`,
);
}
}