-
Notifications
You must be signed in to change notification settings - Fork 314
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Auto-tag alpha and beta releases (any release with a dash in it) as 'next' in NPM.
- Loading branch information
Morley Zhi
authored
Jun 18, 2019
1 parent
44bc6ac
commit 39e8a1c
Showing
3 changed files
with
22 additions
and
6 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 |
---|---|---|
|
@@ -38,23 +38,35 @@ env: | |
notifications: | ||
slack: | ||
secure: CgXxNEQrQ82EatyF/wSdF0P5rXcWPL+fFZ1lb1aBb8RbVt5gwddJ6xWVD/nYSr6tIJvIYHYhoYsIDPENwezIPsesG7kWXerQhydsEcA34JKxzsStd/TmU6Moxuwy6KTN7yzmL6586nSvoAw9TNPgvRkJFkH07asjGIc9Rlaq7/Y= | ||
before_deploy: gulp build | ||
after_deploy: './after_deploy.sh' | ||
before_deploy: | ||
- "gulp build" | ||
# Identifies `a.b.c-xxx.n` tags as pre-releases, and `a.b.c` as stable releases | ||
- | | ||
function npm_dist_tag() { | ||
if [[ "$TRAVIS_TAG" = *"-"* ]]; then | ||
echo "next" | ||
else | ||
echo "latest" | ||
fi | ||
} | ||
after_deploy: "./after_deploy.sh" | ||
deploy: | ||
- provider: npm | ||
email: [email protected] | ||
api_key: $NPM_TOKEN | ||
skip_cleanup: true | ||
tag: $(npm_dist_tag) | ||
on: | ||
tags: true | ||
repo: stellar/js-stellar-sdk | ||
node: 6.14.0 | ||
condition: '$INTEGRATION = true' | ||
condition: "$INTEGRATION = true" | ||
- provider: script | ||
script: './bower_publish.sh' | ||
script: "./bower_publish.sh" | ||
skip_cleanup: true | ||
on: | ||
tags: true | ||
repo: stellar/js-stellar-sdk | ||
node: 6.14.0 | ||
condition: '$INTEGRATION = true' | ||
condition: "$INTEGRATION = true" |
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
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