From 24ed3d0a743a2a0929a9ce53a5dbe54a818abe1d Mon Sep 17 00:00:00 2001 From: Hugo Alliaume Date: Wed, 16 Oct 2019 14:48:18 +0200 Subject: [PATCH] Update .travis.yml --- .travis.yml | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) diff --git a/.travis.yml b/.travis.yml index a637b097..50acfa14 100644 --- a/.travis.yml +++ b/.travis.yml @@ -16,9 +16,6 @@ cache: - ~/.npm - ~/.cache -install: - - yarn install --frozen-lockfile - stages: - test - deploy @@ -27,12 +24,19 @@ jobs: include: - stage: test name: Testing + + install: + - yarn install --frozen-lockfile script: - yarn lint - yarn docs:build - - stage: deploy + - if: branch = master AND type = push + stage: deploy name: Deploy - if: branch = master AND type = push node_js: node - script: yarn semantic-release + + install: + - yarn install --frozen-lockfile + script: + - yarn semantic-release