@dapplion/npm-test
v1.0.3
Published
## Minimal configuration to automatically release NPM packages
Downloads
9
Readme
npm-test
Minimal configuration to automatically release NPM packages
.travis.yml
language: node_js
jobs:
include:
- stage: npm release
if: tag IS present
node_js: "10.16.0"
deploy:
provider: npm
email: "$NPM_EMAIL"
api_key: "$NPM_TOKEN"
skip_cleanup: true
on:
tags: true
Travis configuration
Go to npm / user / tokens and get an NPM token. Then, define two private ENVs on the travis page:
- NPM_EMAIL
- NPM_TOKEN
How to trigger releases
npm version patch -m "Bump version"
git push origin master
git push --tags