-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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.
- Loading branch information
1 parent
432f4d3
commit d64a0d6
Showing
1 changed file
with
13 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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 |