Skip to content

Commit

Permalink
Showing 1 changed file with 10 additions and 5 deletions.
15 changes: 10 additions & 5 deletions docs/development/publishing.md
Original file line number Diff line number Diff line change
@@ -1,10 +1,15 @@
# Publishing new versions

Publishing is done with lerna:

```shell
$ yarn run lerna publish
```
1. Set up a personal access token in github with push access to the repository.
Add the token to the environment with `$ export GH_TOKEN=<token>`. This is to
annotate the tags with github releases.
1. Authenticate with the NPM CLI (verify with `$ npm whoami`)
1. Temporarily disable branch protection on the repository (the lerna release
script needs to push to master)
1. Do the release with lerna:
`$ yarn run lerna publish [prerelease] [--preid <preid>]`. This is the point
of no return, if it succeeds in creating the releases on NPM.
1. Turn branch protection back on

There will be a prompt to confirm the new versions of packages to be published.
Changelogs will automatically be generated and new version numbers chosen based

0 comments on commit f8807e8

Please sign in to comment.