From f81cc7008ca53231b20232315de88a1c2ac8d66b Mon Sep 17 00:00:00 2001 From: Hugo Alliaume Date: Sat, 1 Dec 2018 17:21:52 +0100 Subject: [PATCH] chore(ci): use Travis jobs & stages --- .travis.yml | 20 ++++++++++++-------- 1 file changed, 12 insertions(+), 8 deletions(-) diff --git a/.travis.yml b/.travis.yml index 8173341..294539c 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,11 +1,11 @@ -sudo: false dist: trusty language: node_js node_js: 8 -notifications: - email: false +branches: + except: + - /^v\d+\.\d+\.\d+$/ cache: yarn: true @@ -23,9 +23,13 @@ install: script: - true -after_success: - - yarn travis-deploy-once "yarn semantic-release" +jobs: + include: + - stage: Release + if: branch = master AND type = push + node_js: node + script: yarn semantic-release + +notifications: + email: false -branches: - except: - - /^v\d+\.\d+\.\d+$/