@mintlify/cli 4.0.538 → 4.0.540
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/CONTRIBUTING.md +29 -25
- package/bin/tsconfig.build.tsbuildinfo +1 -1
- package/package.json +7 -7
package/CONTRIBUTING.md
CHANGED
|
@@ -14,28 +14,32 @@ If you wish to continue using the production version of the CLI, you will need t
|
|
|
14
14
|
|
|
15
15
|
## Updating Version of Mint Client
|
|
16
16
|
|
|
17
|
-
The CLI uses GitHub releases to download specific versions of the client code used in `mintlify dev`.
|
|
18
|
-
|
|
19
|
-
Here's how
|
|
20
|
-
|
|
21
|
-
1.
|
|
22
|
-
2.
|
|
23
|
-
3.
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
- [ ]
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
17
|
+
The CLI uses GitHub releases to download specific versions of the client code used in `mintlify dev`. It will attempt to fetch the latest version of the client app specified by our [`mint-version.txt`](https://d1ctpt7j8wusba.cloudfront.net/mint-version.txt) file. The mint-version.txt and compressed versions of the client live in S3 under `mint-client-releases`.
|
|
18
|
+
|
|
19
|
+
Here's how new client changes are published, they should usually require no manual intervention:
|
|
20
|
+
|
|
21
|
+
1. When a PR is merged to main, we check whether or not the client app or any of its dependencies have changed with the `check-changes` workflow job
|
|
22
|
+
2. The `bump-packages` job always runs, which increments the version of any package that has changed in our monorepo packages, commits the version increment to github, and publishes the update to npm
|
|
23
|
+
3. If `check-changes` detected a client change, the `client-release` workflow is triggered after `bump-packages`
|
|
24
|
+
4. The `client-release` workflow creates a standalone zip of the client app and uploads it to S3 as mint-${version}.tar.gz
|
|
25
|
+
5. The `cli-test` workflow is triggered, which uses a local build of the CLI package and the new client version that was just zipped and shipped. It tests the CLI output has not changed (no new errors) and that the starter-kit passes some simple Puppeteer tests.
|
|
26
|
+
6. If the `cli-test` workflow passes, the `update-release-version` workflow is triggered, which uploads an updated version of the mint-version.txt file to S3 with the new version number, and invalidates the cache for that file.
|
|
27
|
+
|
|
28
|
+
## Manually triggering a client release and version update
|
|
29
|
+
|
|
30
|
+
You can still create a new client version whenever by dispatching the `client-release` workflow from the [Actions tab for the mint repo](https://github.com/mintlify/mint/actions). Click the "Run workflow" dropdown button and enter the version number you want to set it to, then click the green "Run workflow" button. This should run the steps 4-6 detailed above, creating a new package of the client app and updating the version number used by the CLI.
|
|
31
|
+
|
|
32
|
+
## Manually updating the version of the client app used by the CLI
|
|
33
|
+
|
|
34
|
+
If for some reason we need to roll back a client version, we can update the mint-version.txt file to swiftly change which version is downloaded by the CLI. This can be done 2 ways:
|
|
35
|
+
|
|
36
|
+
1. Via github workflow: Go to the [Actions tab for the mint repo](https://github.com/mintlify/mint/actions) and select the Update Release Version workflow. Click the "Run workflow" dropdown button and enter the version number you want to set it to, then click the green "Run workflow" button.
|
|
37
|
+
2. Manually: If you have S3 access, simply upload a new version of the mint-version.txt file in the `mint-client-releases` folder
|
|
38
|
+
|
|
39
|
+
## Manually uploading a packaged version of the client app
|
|
40
|
+
|
|
41
|
+
If for some reason the release workflow is broken or we can't access AWS programmatically, the newly zipped version of the client app is retained in the `client-release` workflow as a Github artifact for 1 day. We can download it manually from Github after the release and upload it wherever needed.
|
|
42
|
+
|
|
43
|
+
## Manually overriding the client version used locally
|
|
44
|
+
|
|
45
|
+
Run `mintlify dev --client-version x.x.xxxx` with the client version you would like to use and that version will be downloaded instead of the latest client version.
|