I want to Travis to publish npm whenever I accept dependent bot changes. I have added npm email and auth token.
My travis configuration is this right now (which I am not sure is correct or not)
language: node_js
node_js:
- "node"
install:
- "npm install"
script:
- "npm run test"
before_deploy:
deploy:
provider: npm
email: "$npm_email"
api_key: "$npm_token"
on:
branch: production
Where npm test looks like this
"scripts": {
"test": "jest"
}
How can I make travis to increment npm package version and have that package version also on the git? same for changelog.md?