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
+28-13Lines changed: 28 additions & 13 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -39,7 +39,7 @@ Each PR should pass the tests and the linter to be accepted.
39
39
```bash
40
40
# Tests with Jest
41
41
docker pull getmeili/meilisearch:latest # Fetch the latest version of Meilisearch image from Docker Hub
42
-
docker run -p 7700:7700 getmeili/meilisearch:latest ./meilisearch --master-key=masterKey --no-analytics
42
+
docker run -p 7700:7700 getmeili/meilisearch:latest meilisearch --master-key=masterKey --no-analytics
43
43
# Integration tests
44
44
yarn test
45
45
# End-to-end tests
@@ -131,10 +131,16 @@ _[Read more about this](https://github.com/meilisearch/integration-guides/blob/m
131
131
132
132
⚠️ 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).
133
133
134
-
Make a PR modifying the file [`package.json`](/package.json) with the right version.
134
+
Make a PR modifying the following files with the right version:
135
135
136
+
[`package.json`](/package.json):
136
137
```javascript
137
-
"version":"X.X.X"
138
+
"version":"X.X.X",
139
+
```
140
+
141
+
[`src/package-version`](/src/package-version.ts)
142
+
```javascript
143
+
exportconstPACKAGE_VERSION='X.X.X'
138
144
```
139
145
140
146
Once the changes are merged on `main`, you can publish the current draft release via the [GitHub interface](https://github.com/meilisearch/instant-meilisearch/releases): on this page, click on `Edit` (related to the draft release) > update the description (be sure you apply [these recommandations](https://github.com/meilisearch/integration-guides/blob/main/resources/integration-release.md#writting-the-release-description)) > when you are ready, click on `Publish release`.
@@ -153,16 +159,25 @@ If you don't have the access to do it, please request it internally.
153
159
154
160
Here are the steps to release a beta version of this package:
155
161
156
-
- Create a new branch originating the branch containing the "beta" changes. For example, if during the Meilisearch pre-release, create a branch originating `bump-meilisearch-v*.*.*`.<br>
157
-
`vX.X.X` is the next version of the package, NOT the version of Meilisearch!
158
-
159
-
```bash
160
-
git checkout bump-meilisearch-v*.*.*
161
-
git pull origin bump-meilisearch-v*.*.*
162
-
git checkout -b vX.X.X-beta.0
163
-
```
164
-
165
-
- Change the version in `package.json` by `vX.X.X-beta.0` and commit it to the `vX.X.X-beta.0` branch
162
+
- Create a new branch containing the "beta" changes with the following format `xxx-beta` where `xxx` explains the context.
163
+
164
+
For example:
165
+
- When implementing a beta feature, create a branch `my-feature-beta` where you implement the feature.
166
+
```bash
167
+
git checkout -b my-feature-beta
168
+
```
169
+
- During the Meilisearch pre-release, create a branch originating from `bump-meilisearch-v*.*.*` named `bump-meilisearch-v*.*.*-beta`. <br>
170
+
`v*.*.*` is the next version of the package, NOT the version of Meilisearch!
171
+
172
+
```bash
173
+
git checkout bump-meilisearch-v*.*.*
174
+
git pull origin bump-meilisearch-v*.*.*
175
+
git checkout -b bump-meilisearch-v*.*.*-beta
176
+
```
177
+
178
+
- Change the version in`package.json` with `*.*.*-xxx-beta.0` and commit it to the `v*.*.*-beta` branch. None or multiple `-xxx`are valid. Examples:
179
+
- `v*.*.*-my-feature-beta.0`
180
+
- `v*.*.*-beta.0`
166
181
167
182
- Go to the [GitHub interface for releasing](https://github.com/meilisearch/instant-meilisearch/releases): on this page, click on `Draft a new release`.
0 commit comments