Skip to content

Commit

Permalink
chore(semantic-release): Update semantic-relase to handle 2FA for git…
Browse files Browse the repository at this point in the history
…hub/npm
  • Loading branch information
Michael Weibel committed Jan 30, 2018
1 parent 9ec685d commit 2b2aa18
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 41 deletions.
52 changes: 15 additions & 37 deletions .travis.yml
@@ -1,43 +1,21 @@
language: node_js
cache:
directories:
- ~/.npm
notifications:
email: false
node_js:
- "8"
- "7"
- "6"
- "5"
- "4"
sudo: false

# https://docs.travis-ci.com/user/languages/javascript-with-nodejs#Node.js-v4-(or-io.js-v3)-compiler-requirements
env:
- CXX=g++-4.8
addons:
apt:
sources:
- ubuntu-toolchain-r-test
packages:
- g++-4.8

before_script:
- npm prune

script:
- npm run lint
- npm run test-coverage
- npm run coveralls || true

- '9'
- '8'
- '7'
- '6'
- '4'
after_success:
- 'curl -Lo travis_after_all.py https://git.io/travis_after_all'
- python travis_after_all.py
- export $(cat .to_export_back) &> /dev/null
- npm run semantic-release

- npm run travis-deploy-once "npm run semantic-release"
branches:
except:
- /^v\d+\.\d+\.\d+$/

cache:
directories:
- node_modules

notifications:
email: false
script:
- npm run lint
- npm run test-coverage
- npm run coveralls || true
11 changes: 7 additions & 4 deletions package.json
Expand Up @@ -11,7 +11,8 @@
"test": "mocha -R spec test --bail",
"test-coverage": "istanbul cover _mocha --report lcovonly -- -R spec test --bail",
"coveralls": "cat ./coverage/lcov.info | coveralls",
"semantic-release": "semantic-release pre && npm publish && semantic-release post"
"semantic-release": "semantic-release",
"travis-deploy-once": "travis-deploy-once"
},
"bin": {
"lcov-result-merger": "./bin/lcov-result-merger.js"
Expand Down Expand Up @@ -53,8 +54,9 @@
"eslint-plugin-standard": "^2.0.0",
"istanbul": "^0.4.2",
"mocha": "^3.0.0",
"semantic-release": "^4.3.5",
"standard": "^8.0.0"
"semantic-release": "^12.4.1",
"standard": "^8.0.0",
"travis-deploy-once": "^4.3.3"
},
"engines": {
"node": ">=4 <=9"
Expand All @@ -73,5 +75,6 @@
"commitizen": {
"path": "./node_modules/cz-conventional-changelog"
}
}
},
"version": "0.0.0-development"
}

0 comments on commit 2b2aa18

Please sign in to comment.