A guide to publishing a package to NPM using Travis.
Info |
---|
This is a Work in Progress - modifying the pypi docs for NPM |
Step-by-step guide
...
Create a DevOps Support ticket to have DevOps get publish tokens for the edX NPMJS account and have DevOps add it to the travis config using the Travis CI command line client to encrypt the token:
Code Block | ||
---|---|---|
| ||
travis encrypt --add deploy.api_key NPMTOKEN |
...
- using the Stages feature of Travis (studio-frontend)
- using Travis' simple built-in deploy
- Pitfalls: If prefixing your package name with the
@edx
package scope (which you should!) you'll need to make sure you specify to npm that you still want the package to be public by doing this.
- Pitfalls: If prefixing your package name with the
...
Troubleshooting
If your tag is in GitHub, but is not starting a build in Travis, or if you are deploying from too many sub-builds in Travis, see the following changes to .travis.yml.These docs have been merged with How to connect a repository to Travis CI
Related articles
Filter by label (Content by label) | ||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
...