Skip to content

Commit

Permalink
Automatically create release on GitHub from travis
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
stianjensen committed Dec 4, 2018
1 parent 432f4d3 commit d64a0d6
Showing 1 changed file with 13 additions and 9 deletions.
22 changes: 13 additions & 9 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,15 +14,19 @@ after_success:
- git config --local user.name "Travis"
- git config --local user.email "[email protected]"
- git tag v$PACKAGE_VERSION
- git push --tags
before_deploy:
- cd $TRAVIS_BUILD_DIR
deploy:
provider: npm
skip_cleanup: true
email: [email protected]
api_key:
secure: iWwXLzno47upqZ0qETbuc+sWEDf9drr/KYulsjWJMCuTdeWj4HuF4NcMSENR43ngeEBO34+NxiAjC0yKe+qPJ6bmq06fYPjobPHUhI9tfWRUsuxxkxhZUnTsR2FaOz7vVe1GTECcqKtR1OAeJH7IPWvanKHNMOyXjUrvSKWPtmo=
on:
branch: master
condition: "\"$PACKAGE_VERSION\" != \"$LATEST_TAG\""
- provider: npm
skip_cleanup: true
email: [email protected]
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

0 comments on commit d64a0d6

Please sign in to comment.