From d64a0d64eb963dd87dfa1bd10ad9da07549d0f35 Mon Sep 17 00:00:00 2001 From: Stian Jensen Date: Tue, 4 Dec 2018 22:28:10 +0100 Subject: [PATCH] Automatically create release on GitHub from travis This should take care of pushing the tag that travis created when publishing to npm, as well as marking it as a release on GitHub. --- .travis.yml | 22 +++++++++++++--------- 1 file changed, 13 insertions(+), 9 deletions(-) diff --git a/.travis.yml b/.travis.yml index 6d15d80..a7adff5 100644 --- a/.travis.yml +++ b/.travis.yml @@ -14,15 +14,19 @@ after_success: - git config --local user.name "Travis" - git config --local user.email "post@ninjadev.org" - git tag v$PACKAGE_VERSION - - git push --tags before_deploy: - cd $TRAVIS_BUILD_DIR deploy: - provider: npm - skip_cleanup: true - email: post@ninjadev.org - api_key: - secure: iWwXLzno47upqZ0qETbuc+sWEDf9drr/KYulsjWJMCuTdeWj4HuF4NcMSENR43ngeEBO34+NxiAjC0yKe+qPJ6bmq06fYPjobPHUhI9tfWRUsuxxkxhZUnTsR2FaOz7vVe1GTECcqKtR1OAeJH7IPWvanKHNMOyXjUrvSKWPtmo= - on: - branch: master - condition: "\"$PACKAGE_VERSION\" != \"$LATEST_TAG\"" + - provider: npm + skip_cleanup: true + email: post@ninjadev.org + api_key: + secure: iWwXLzno47upqZ0qETbuc+sWEDf9drr/KYulsjWJMCuTdeWj4HuF4NcMSENR43ngeEBO34+NxiAjC0yKe+qPJ6bmq06fYPjobPHUhI9tfWRUsuxxkxhZUnTsR2FaOz7vVe1GTECcqKtR1OAeJH7IPWvanKHNMOyXjUrvSKWPtmo= + on: + branch: master + condition: "\"$PACKAGE_VERSION\" != \"$LATEST_TAG\"" + - provider: releases + api_key: + secure: "HTbYTMO/Me+AlcGfh2+1UMUSvirmnLHn940VzyzYhJT15HEHGLPl/m9f8+JuWSJs27twdMG2/DDWc5A6FypaiATA3hUaymfgsjKkOW7ozaQ4dV+Fw9lo/DsqbP+mlMRwMIL5+FawCJzgIcHUxytzwFxb+GfIoIfT72vjWiaGTUM=" + name: v$PACKAGE_VERSION + skip_cleanup: true