**chore(version): bump version to 0.9.35 and update references**
- Updated version to `0.9.35` in `README.md`, `cli-package/package.json`, and `src/utils/version.ts`. - Synced `@soulcraft/brainy` dependency version to `0.9.35` in the CLI package for consistency. - Updated npm version badge in `README.md` to reflect the new version. - Enhanced GitHub release script (`scripts/create-github-release.js`) to check and push tags to remote if they exist locally. This update ensures consistent versioning across the project and improves release automation with better tag management.
This commit is contained in:
parent
d5d5ad3985
commit
4cbc9ae4db
4 changed files with 27 additions and 4 deletions
|
|
@ -6,7 +6,7 @@
|
|||
[](https://nodejs.org/)
|
||||
[](https://www.typescriptlang.org/)
|
||||
[](CONTRIBUTING.md)
|
||||
[](https://www.npmjs.com/package/@soulcraft/brainy)
|
||||
[](https://www.npmjs.com/package/@soulcraft/brainy)
|
||||
|
||||
[//]: # ([](https://github.com/sodal-project/cartographer))
|
||||
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "@soulcraft/brainy-cli",
|
||||
"version": "0.9.34",
|
||||
"version": "0.9.35",
|
||||
"description": "Command-line interface for the Brainy vector graph database",
|
||||
"type": "module",
|
||||
"bin": {
|
||||
|
|
@ -41,7 +41,7 @@
|
|||
"url": "git+https://github.com/soulcraft-research/brainy.git"
|
||||
},
|
||||
"dependencies": {
|
||||
"@soulcraft/brainy": "0.9.34",
|
||||
"@soulcraft/brainy": "0.9.35",
|
||||
"commander": "^14.0.0",
|
||||
"omelette": "^0.4.17"
|
||||
},
|
||||
|
|
|
|||
|
|
@ -45,6 +45,29 @@ try {
|
|||
process.exit(1)
|
||||
}
|
||||
|
||||
// Check if the tag exists locally
|
||||
let tagExistsLocally = false
|
||||
try {
|
||||
execSync(`git tag -l v${version}`, { stdio: 'pipe', cwd: rootDir }).toString().trim() === `v${version}` ? tagExistsLocally = true : tagExistsLocally = false
|
||||
} catch (error) {
|
||||
console.log(`Error checking if tag exists: ${error.message}`)
|
||||
tagExistsLocally = false
|
||||
}
|
||||
|
||||
// Push the tag to remote if it exists locally
|
||||
if (tagExistsLocally) {
|
||||
try {
|
||||
console.log(`Pushing tag v${version} to remote...`)
|
||||
execSync(`git push origin v${version}`, { stdio: 'inherit', cwd: rootDir })
|
||||
console.log(`Successfully pushed tag v${version} to remote`)
|
||||
} catch (error) {
|
||||
console.error(`Error pushing tag to remote: ${error.message}`)
|
||||
// Continue with release creation even if tag push fails
|
||||
}
|
||||
} else {
|
||||
console.log(`Tag v${version} does not exist locally, skipping tag push`)
|
||||
}
|
||||
|
||||
// Create the GitHub release
|
||||
try {
|
||||
console.log(`Creating GitHub release for v${version}...`)
|
||||
|
|
|
|||
|
|
@ -3,4 +3,4 @@
|
|||
* Do not modify this file directly.
|
||||
*/
|
||||
|
||||
export const VERSION = '0.9.34';
|
||||
export const VERSION = '0.9.35';
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue