dev

volebo.net development


Project maintained by volebo Hosted on GitHub Pages — Theme by mattgraham

Publish packages from Travis CI to NPM

Development process

Process is the following

  1. (contributor) Add/modify/remove code
  2. (contributor) Send pull request to master
  3. (maintainer) Approve PR (if it is useful)
  4. (maintainer) Bump version for the package
  5. (maintainer) Tag the commit git tag ...
  6. (Travis CI) Test and publish new version on NPM

HOWTO: Configure the repository

Here is a checklist:

Sample travis.yml


deploy:
  provider: npm
  api_key:
    secure: Ivf1sGIwxxxxxxxxxxxxxxx....3an=
  email:
    secure: TXbFHByxxxxxxxxxxxxxxx.....bd0=
  on:
    tags: true
    node_js: 6
    repo: volebo/express-mw-lang

npmignore

.npmignore should be checked for:

  1. required files are published
  2. dev-files (like .env or gulpfile ) are not published

Remember - published NPM package is not for changing, it is just a dependency for other packages. If you want to modify the package - welcome to github;)

for NPM > 5.5.1