To be able to publish a release you'll need to generate a GitHub access token by going to https://github.com/settings/tokens/new. The access token should have the repo
scope/permission. Once you have the token, assign it to an environment variable (on macOS/linux):
export GH_TOKEN="<YOUR_TOKEN_HERE>"
In order to build a signed copy with working auto-update, you will need to join the Apple developer program and get a certificate. The Electron docs have a document on submitting your app to the app store, you only have to get through to the certificate step.
-
Make sure the release is working by running
npm run dist
and testing the built app inside the./applications/desktop/dist/
folder. You can build for all platforms usingnpm run dist:all
. -
Double check that publish will really work by running
npm run verifyBeforePublish
first -
Run
lerna publish
to publish everything, which also runs the verification steps. You will have to pick versions for everything. -
Run the following to ship the built desktop app
lerna run ship --scope nteract --stream
- From GitHub go to nteract's releases, verify everything works and edit the release notes. The name should follow our naming guidelines, namely that we use the last name of the next scientist in the list with an adjective in front. Example:
Last release: Avowed Avogadro
Next Scientist: Babbage
Next release: Babbling Babbage
My favorite way to pick the alliterative adjectives is using the local dictionary and our friend grep
:
$ cat /usr/share/dict/words | grep "^babb"
babbitt
babbitter
babblative
babble
babblement
babbler
babblesome
babbling
babblingly
babblish
babblishly
babbly
babby
- Once you're ready click "Publish release". On Mac and Windows the update will be automatically downloaded and installed.