-
Notifications
You must be signed in to change notification settings - Fork 4
chore: add script for bumping version #42
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
Conversation
Important Review skippedAuto reviews are disabled on base/target branches other than the default branch. Please check the settings in the CodeRabbit UI or the You can disable this status message by setting the WalkthroughA new npm script, "bump-version," was added to the project configuration, invoking a newly created TypeScript script. This script automates the process of incrementing patch versions in all package.json files defined within a pnpm workspace by parsing workspace definitions and updating version numbers accordingly. Changes
Sequence Diagram(s)sequenceDiagram
participant User
participant NpmScript
participant BumpVersionScript
participant WorkspaceYaml
participant PackageJsonFiles
User->>NpmScript: Run "npm run bump-version"
NpmScript->>BumpVersionScript: Execute bump-version.ts
BumpVersionScript->>WorkspaceYaml: Read pnpm-workspace.yaml
WorkspaceYaml-->>BumpVersionScript: Return package globs
BumpVersionScript->>PackageJsonFiles: Locate and read package.json files
loop For each package.json
BumpVersionScript->>PackageJsonFiles: Increment patch version and write back
end
BumpVersionScript->>User: Log version updates
Poem
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
SupportNeed help? Create a ticket on our support page for assistance with any issues or questions. Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
@coderabbitai review |
✅ Actions performedReview triggered.
|
1 similar comment
✅ Actions performedReview triggered.
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Actionable comments posted: 4
📜 Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro
⛔ Files ignored due to path filters (1)
pnpm-lock.yaml
is excluded by!**/pnpm-lock.yaml
📒 Files selected for processing (2)
package.json
(1 hunks)scripts/bump-version.ts
(1 hunks)
🔇 Additional comments (1)
package.json (1)
12-12
: LGTM! Clean script addition.The npm script is properly configured to use tsx for TypeScript execution.
Summary by CodeRabbit