Skip to content

Commit

Permalink
chore(publishing): add semantic-release (#415)
Browse files Browse the repository at this point in the history
* chore(release): [WIP] add semantic-release

* test(ci): wip

* test(ci): add node versions

* test(ci): remove extra test

* tests(ci): revise

* tests(ci): only push to npm on master

* tests(ci): use matrix on jobs

* tests(ci): revise

* tests(ci): update

* tests(ci): test

* tests(ci): test

* tests(ci): p

* tests(ci): update travis.yml
  • Loading branch information
evenstensberg authored Apr 30, 2018
1 parent 77eaf24 commit 106c092
Show file tree
Hide file tree
Showing 3 changed files with 1,974 additions and 447 deletions.
35 changes: 23 additions & 12 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,11 @@
sudo: false
notifications:
email: false
language: node_js
node_js:
- "8"
- "7"
- "6"

matrix:
include:
Expand All @@ -17,23 +24,27 @@ matrix:
- os: linux
node_js: "6"
env: JOB_PART=integration
sudo: false

notifications:
email: false

before_install:
- npm i -g npm

install:
- npm i -g npm@latest
- npm ci
- npm install --global codecov
- npm install --global eslint
- npm install -g codecov
- npm install -g eslint

before_script:
- export DISPLAY=:99.0
- sh -e /etc/init.d/xvfb start

script:
- npm run travis:$JOB_PART
- commitlint-travis
jobs:
include:
- stage: commit lint
script: commitlint-travis
- stage: NPM release
if: branch = master
node_js: "8"
script: echo "Deploying new webpack-cli version to npm ..."
deploy:
script: npx semantic-release
provider: npm
api_key: $NPM_API_KEY
on: deploy-npm-release
Loading

0 comments on commit 106c092

Please sign in to comment.