docs(readme): add travis encrypt commands

This commit is contained in:
Stephan Bönnemann 2015-02-08 16:59:21 +01:00
parent c7862b8d0d
commit 36f8643f3e

View File

@ -135,7 +135,8 @@ notifications:
email: false email: false
env: env:
# Get your token here: https://github.com/settings/tokens/new # Get your token here: https://github.com/settings/tokens/new
# Encrypt this. See notes. # You should encrypt this:
# `travis encrypt GH_TOKEN=<token> --add`
global: GH_TOKEN=<github-access-token-with-acceess-to-your-repo> global: GH_TOKEN=<github-access-token-with-acceess-to-your-repo>
deploy: deploy:
provider: npm provider: npm
@ -143,8 +144,9 @@ deploy:
# Very important. Don't forget this one. # Very important. Don't forget this one.
skip_cleanup: true skip_cleanup: true
# Travis currently only supports the old auth key format. # Travis currently only supports the old auth key format.
# Do `echo -n "username:password" | base64` to get it. # Do `echo -n "<username>:<password>" | base64` to get it.
# Encrypt this. See notes. # You should encrypt this:
# `travis encrypt $(echo -n "<username>:<password>" | base64) --add deploy.api_key`
api_key: <npm-api-key> api_key: <npm-api-key>
on: on:
branch: master branch: master