File tree Expand file tree Collapse file tree 1 file changed +10
-5
lines changed Expand file tree Collapse file tree 1 file changed +10
-5
lines changed Original file line number Diff line number Diff line change 11# Publishing new versions
22
3- Publishing is done with lerna:
4-
5- ``` shell
6- $ yarn run lerna publish
7- ```
3+ 1 . Set up a personal access token in github with push access to the repository.
4+ Add the token to the environment with ` $ export GH_TOKEN=<token> ` . This is to
5+ annotate the tags with github releases.
6+ 1 . Authenticate with the NPM CLI (verify with ` $ npm whoami ` )
7+ 1 . Temporarily disable branch protection on the repository (the lerna release
8+ script needs to push to master)
9+ 1 . Do the release with lerna:
10+ ` $ yarn run lerna publish [prerelease] [--preid <preid>] ` . This is the point
11+ of no return, if it succeeds in creating the releases on NPM.
12+ 1 . Turn branch protection back on
813
914There will be a prompt to confirm the new versions of packages to be published.
1015Changelogs will automatically be generated and new version numbers chosen based
You can’t perform that action at this time.
0 commit comments