From 8f3000cb8ce1a45e5f25d7a7fae6af00f743c20e Mon Sep 17 00:00:00 2001 From: Le Minh Tri Date: Sat, 9 Feb 2019 06:47:58 +0700 Subject: [PATCH] Update .travis.yml --- .travis.yml | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/.travis.yml b/.travis.yml index 22f6f7c..09b8192 100644 --- a/.travis.yml +++ b/.travis.yml @@ -32,9 +32,21 @@ addons: - curl before_install: + - curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.34.0/install.sh | bash + - export NVM_DIR="${XDG_CONFIG_HOME/:-$HOME/.}nvm" + - [ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" + - nvm use 11 - curl -o- -L https://yarnpkg.com/install.sh | bash - export PATH="$HOME/.yarn/bin:$PATH" install: - yarn install - yarn dist +deploy: + provider: releases + api_key: $GITHUB_TOKEN + file_glob: true + file: + - "dist/*" + on: + tags: true