You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
-`feat:` PRs trigger minor releases (1.0.0 → 1.1.0)
108
-
- PRs with `BREAKING CHANGE:` trigger major releases (1.0.0 → 2.0.0)
93
+
### Publishing Steps
94
+
1. Login to npm:
95
+
```bash
96
+
npm login
97
+
```
109
98
110
-
Example PR titles:
111
-
```
112
-
fix: handle null values in response
113
-
feat: add support for custom headers
114
-
feat: add new API endpoint
99
+
2. Build the package:
100
+
```bash
101
+
npm run build
102
+
```
115
103
116
-
BREAKING CHANGE: remove deprecated method
117
-
```
104
+
3. Update the version in package.json:
105
+
```bash
106
+
npm version <patch|minor|major>
107
+
```
108
+
This will:
109
+
- Update the version in package.json
110
+
- Create a git tag
111
+
- Commit the changes
118
112
119
-
Note: Releases only happen when changes are merged into the `main` branch. Make sure your PR titles follow the conventional commit format as they determine the version bump.
113
+
4. Push the changes and tag:
114
+
```bash
115
+
git push && git push --tags
116
+
```
117
+
118
+
5. Publish the package:
119
+
```bash
120
+
npm publish
121
+
```
122
+
123
+
6. Create a GitHub release:
124
+
- Go to the repository's Releases page on GitHub
125
+
- Click "Create a new release"
126
+
- Select the tag that was just created
127
+
- Add release notes describing the changes
128
+
- Click "Publish release"
129
+
130
+
Note: After publishing to npm, it's important to create a corresponding GitHub release to maintain consistency between npm and GitHub.
131
+
132
+
### Version Management
133
+
Use semantic versioning for releases:
134
+
-`npm version patch` for bug fixes (1.0.0 → 1.0.1)
135
+
-`npm version minor` for new features (1.0.0 → 1.1.0)
136
+
-`npm version major` for breaking changes (1.0.0 → 2.0.0)
120
137
121
138
## Code Style and Guidelines
122
139
@@ -131,17 +148,13 @@ Note: Releases only happen when changes are merged into the `main` branch. Make
131
148
1. Create a new branch for your feature/fix
132
149
2. Make your changes
133
150
3. Run tests (when available)
134
-
4. Submit a pull request with a descriptive title following the conventional commit format
0 commit comments