@babylonlabs-io/core-ui 1.0.0 → 1.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -10,7 +10,7 @@
10
10
 
11
11
  ---
12
12
 
13
- ## Installation
13
+ ## 👨🏻‍💻 Installation
14
14
 
15
15
  To install the package, run the following command:
16
16
 
@@ -18,13 +18,42 @@ To install the package, run the following command:
18
18
  npm i @babylonlabs-io/core-ui
19
19
  ```
20
20
 
21
- ## Version Release
21
+ ## 📝 Commit Format & Automated Releases
22
22
 
23
- ### Stable Version
23
+ This project uses [**Conventional Commits**](https://www.conventionalcommits.org/en/v1.0.0/)
24
+ and [**semantic-release**](https://semantic-release.gitbook.io/) to automate
25
+ versioning, changelog generation, and npm publishing.
24
26
 
25
- Stable release versions are manually released from the main branch.
27
+ ### ✅ How It Works
26
28
 
27
- ## Storybook
29
+ 1. All commits must follow the **Conventional Commits** format.
30
+ 2. When changes are merged into the `main` branch:
31
+ - `semantic-release` analyzes commit messages
32
+ - Determines the appropriate semantic version bump (`major`, `minor`, `patch`)
33
+ - Tags the release in Git with release change log
34
+ - Publishes the new version to npm
35
+
36
+ ### 🧱 Commit Message Examples
37
+
38
+ ```console
39
+ feat: add support for slashing script
40
+ fix: handle invalid staking tx gracefully
41
+ docs: update README with commit conventions
42
+ refactor!: remove deprecated method and cleanup types
43
+ ```
44
+
45
+ > **Note:** For breaking changes, add a `!` after the type (
46
+ > e.g. `feat!:` or `refactor!:`) and include a description of the breaking
47
+ > change in the commit body.
48
+
49
+ ### 🚀 Releasing
50
+
51
+ Just commit your changes using the proper format and merge to `main`.
52
+ The CI pipeline will handle versioning and releasing automatically — no manual
53
+ tagging or version bumps needed.
54
+
55
+
56
+ ## 📖 Storybook
28
57
 
29
58
  To view the component library, run:
30
59
 
@@ -32,7 +61,7 @@ To view the component library, run:
32
61
  npm run storybook
33
62
  ```
34
63
 
35
- ## Usage
64
+ ## 💪 Usage
36
65
 
37
66
  Provide examples of how to use the library in a project. Include code snippets and explanations.
38
67