Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Version Bump Control for Concerto packages #955

Open
muhabdulkadir opened this issue Dec 3, 2024 · 0 comments
Open

Version Bump Control for Concerto packages #955

muhabdulkadir opened this issue Dec 3, 2024 · 0 comments

Comments

@muhabdulkadir
Copy link
Contributor

Discussion 🗣

The current process of publishing workspaces in the GitHub Actions pipeline only updates the package.json version. This limited version bump approach leaves the responsibility of updating all package occurrences to the developer. As a result, there is a risk of version discrepancies across the repository, leading to the need for manual updates and potential inconsistencies.

Context

When a new version of a package is published, it’s common to expect all references to that package in the repository to be updated to match. However, our current approach only updates the version in package.json, which means that other instances of the package—whether in dependency declarations, or other project files—remain unchanged. This can lead to situations where different parts of the codebase reference different versions of a package, creating potential compatibility issues and making future updates more cumbersome.

Detailed Description

To improve this process, we propose enhancing the GitHub Actions workflow to automatically bump the version in package.json as well as all other references of the packages throughout the repository. This will ensure consistency in versioning and eliminate the need for manual updates whenever the package version changes.

Updating the script would involve:

  • Scanning and updating the package.json files.
  • Identifying and modifying all occurrences of the updated package in other files (e.g., code dependencies).
  • Ensuring that version updates are applied within the same pull request.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant