Skip to content

Commit eda5ac6

Browse files
committed
Deploy only on v* tags
1 parent f9f9277 commit eda5ac6

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

.travis.yml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,8 @@ deploy:
1919
tag: "$NPM_TAG"
2020
skip_cleanup: true
2121
on:
22-
tags: true
22+
all_branches: true
23+
condition: '"$TRAVIS_TAG" =~ "^v[0-9]"'
2324
- provider: releases
2425
api_key: "$GITHUB_TOKEN"
2526
file_glob: true
@@ -28,7 +29,7 @@ deploy:
2829
skip_cleanup: true
2930
on:
3031
all_branches: true
31-
condition: '"$TRAVIS_TAG" != "" && $NPM_TAG = next'
32+
condition: '"$TRAVIS_TAG" =~ "^v[0-9]" && $NPM_TAG = next'
3233
- provider: releases
3334
api_key: "$GITHUB_TOKEN"
3435
file_glob: true
@@ -37,4 +38,4 @@ deploy:
3738
skip_cleanup: true
3839
on:
3940
all_branches: true
40-
condition: '"$TRAVIS_TAG" != "" && $NPM_TAG = latest'
41+
condition: '"$TRAVIS_TAG" =~ "^v[0-9]" && $NPM_TAG = latest'

0 commit comments

Comments
 (0)