Skip to content

Commit

Permalink
ci(travis): semantic-release setup
Browse files Browse the repository at this point in the history
  • Loading branch information
gr2m committed Apr 11, 2019
1 parent af9e342 commit 4f0671c
Showing 1 changed file with 26 additions and 3 deletions.
29 changes: 26 additions & 3 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,27 @@
language: node_js
node_js:
- 8
- 10
cache: npm

# Trigger a push build on master and greenkeeper branches + PRs build on every branches
# Avoid double build on PRs (See https://github.com/travis-ci/travis-ci/issues/1147)
branches:
only:
- master
- /^greenkeeper.*$/
- beta # semantic-release preview releases
- next # semantic-release @next releases
- /^\d+\.x$/ # semantic-release maintenance releases

stages:
- test
- name: release
if: branch =~ /^(\d+\.x|master|next|beta)$/ AND type IN (push)

jobs:
include:
- stage: test
node_js: 10
- node_js: 8
- stage: release
node_js: lts/*
env: semantic-release
script: npx semantic-release

0 comments on commit 4f0671c

Please sign in to comment.