Skip to content

Commit f8807e8

Browse files
docs(development): update the release instructions to something that actually works (#57)
1 parent 4d1a4e4 commit f8807e8

File tree

1 file changed

+10
-5
lines changed

1 file changed

+10
-5
lines changed

docs/development/publishing.md

+10-5
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,15 @@
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

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

0 commit comments

Comments
 (0)