-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[docs] Adds a short doc about publishing new versions
- Loading branch information
Showing
2 changed files
with
25 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
--- | ||
title: Publishing new versions | ||
sidebar_position: 6 | ||
--- | ||
|
||
As the code is structured as a monorepo, we use [Lerna](https://github.com/lerna/lerna) to help version and publish the different packages handled in the repository. | ||
|
||
To check packages that require a new version, you can run: | ||
|
||
```bash | ||
lerna version | ||
``` | ||
|
||
This will ask you, for each package that has been edited since its last release, to specify a new version. Once it's done, a new commit has been added locally, with new tags, matching each package new version. It does not push by default. | ||
|
||
To publish these new versions on [NPM](https://www.npmjs.com/), you can run: | ||
|
||
```bash | ||
lerna publish from-package | ||
``` | ||
|
||
Once you validate the new versions to publish, it will publish each of these versions to NPM. | ||
|
||
If you name your remote differently than `origin`, you need to add the option `--git-remote=<REMOTE_NAME>` to both commands; |