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
Copy file name to clipboardExpand all lines: CONTRIBUTING.md
+25-24Lines changed: 25 additions & 24 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -115,6 +115,8 @@ _[Read more about this](https://github.com/meilisearch/integration-guides/blob/m
115
115
116
116
⚠️ Before doing anything, make sure you got through the guide about [Releasing an Integration](https://github.com/meilisearch/integration-guides/blob/main/resources/integration-release.md).
117
117
118
+
#### Version update
119
+
118
120
Make a PR modifying the following files with the right version:
119
121
120
122
[`package.json`](/package.json):
@@ -127,49 +129,48 @@ Make a PR modifying the following files with the right version:
127
129
exportconstPACKAGE_VERSION='X.X.X'
128
130
```
129
131
132
+
#### Github publish
133
+
130
134
Once the changes are merged on `main`, you can publish the current draft release via the [GitHub interface](https://github.com/meilisearch/meilisearch-js/releases): on this page, click on `Edit` (related to the draft release) > update the description (be sure you apply [these recommendations](https://github.com/meilisearch/integration-guides/blob/main/resources/integration-release.md#writting-the-release-description)) > when you are ready, click on `Publish release`.
131
135
132
136
GitHub Actions will be triggered and push the package to [npm](https://www.npmjs.com/package/meilisearch).
133
137
134
138
#### Release a `beta` Version
135
139
136
-
Here are the steps to release a beta version of this package:
140
+
This package is able to create multiple types of betas:
141
+
- A standard package beta, working on the latest version of Meilisearch.
142
+
- A beta implementing the changes of a rc version of Meilisearch.
143
+
- A beta implementing a specific feature `prototype` of Meilisearch.
144
+
145
+
Here are the steps to release a beta version of this package depending on its type:
137
146
138
-
- Create a new branch containing the "beta" changes with the following format `xxx-beta` where `xxx` explains the context.
147
+
1. Create a new branch containing the changes with the correct name format following these rules:
148
+
-`package beta`: create a branch `beta/xx-xx` with the context of your beta.
149
+
Example: `beta/refactor`.
150
+
- Meilisearch `pre-release beta`: create a branch originating from `bump-meilisearch-v*.*.*` named `pre-release-beta/v*.*.*`. <br>
151
+
Example: `pre-release-beta/v0.30.0`
152
+
- Meilisearch `prototype beta`: create a branch `prototype-beta/xx-xx`. Where `xxx` has the same name as the docker image containing the prototype.
153
+
Example: If the [docker image](https://hub.docker.com/r/getmeili/meilisearch/tags) is named: `prototype-multi-search-0`, the branch should be named: `prototype-beta/prototype-multi-search`
139
154
140
-
For example:
141
-
- When implementing a beta feature, create a branch `my-feature-beta` where you implement the feature.
142
-
```bash
143
-
git checkout -b my-feature-beta
144
-
```
145
-
- During the Meilisearch pre-release, create a branch originating from `bump-meilisearch-v*.*.*` named `bump-meilisearch-v*.*.*-beta`. <br>
146
-
`v*.*.*` is the next version of the package, NOT the version of Meilisearch!
155
+
2.[Update the version](#version-update) following the correct format (X are numbers):
156
+
- package and prototype beta: `X.X.X-***.X`
157
+
example: `0.2.0-new-feature.0`
158
+
- pre-release beta: `X.X.X-vX.X.X-pre-release.X`
159
+
example: `0.2.0-v0.30.0-pre-release.0`
147
160
148
-
```bash
149
-
git checkout bump-meilisearch-v*.*.*
150
-
git pull origin bump-meilisearch-v*.*.*
151
-
git checkout -b bump-meilisearch-v*.*.*-beta
152
-
```
161
+
3. Commit and push your code to the newly created branch (step 1).
153
162
154
-
- Change the version in [`package.json`](/package.json) and in [`src/package-version`](/src/package-version.ts) with `*.*.*-xxx-beta.0` and commit it to the `beta` branch.
155
163
156
-
- Go to the [GitHub interface for releasing](https://github.com/meilisearch/meilisearch-js/releases): on this page, click on `Draft a new release`.
164
+
4. Go to the [GitHub interface for releasing](https://github.com/meilisearch/meilisearch-js/releases): on this page, click on `Draft a new release`.
157
165
158
-
- Create a GitHub pre-release:
166
+
5. Create a GitHub pre-release:
159
167
- Fill the description with the detailed changelogs
160
168
- Fill the title with `vX.X.X-beta.0`
161
169
- Fill the tag with `vX.X.X-beta.0`
162
170
- ⚠️ Select the `vX.X.X-beta.0` branch and NOT `main`
163
171
- ⚠️ Click on the "This is a pre-release" checkbox
164
172
- Click on "Publish release"
165
173
166
-
GitHub Actions will be triggered and push the beta version to [npm](https://www.npmjs.com/package/meilisearch).
167
-
168
-
💡 If you need to release a new beta for the same version (i.e. `vX.X.X-beta.1`):
169
-
- merge the change into your beta branch
170
-
- change the version name in [`package.json`](/package.json) and in [`src/package-version`](/src/package-version.ts)
171
-
- creata a pre-release via the GitHub interface
172
-
173
174
<hr>
174
175
175
176
Thank you again for reading this through. We can not wait to begin to work with you if you make your way through this contributing guide ❤️
0 commit comments