Skip to content

Commit 01a7310

Browse files
chore(travis): remove duplicate npm deploy providers
Currently we have npm deploy provider for each branch that we want to publish on push. By design Travis will not call the deployment providers on PR builds, so they are executed only on push. Our current travis build is triggered only on push in three branches - `master`, `release` and `release-patch`. So there's no need to have the same logic about deploying in npm three times as it cannot be executed for any other branch at the moment. So keep a single deploy mechanism and allow it for all branches.
1 parent 60d9ffa commit 01a7310

File tree

1 file changed

+1
-15
lines changed

1 file changed

+1
-15
lines changed

.travis.yml

Lines changed: 1 addition & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -28,20 +28,6 @@ deploy:
2828
skip_cleanup: true
2929
3030
on:
31-
branch: master
32-
api_key:
33-
secure: "FM9QLOkFq6JpHlfHkT1i2Ht1ZlttZLq7K3kQNLabw7Z5+BPMcy/f3LRJkAkYMezrKLKRkq1uXmhY0BapoTnR9AVEO/t4g6dtbZ1TZ3xBH/HHnFofTFubOrc7+61DJzKduYtnQ/sn3EEOkN8jrXSY9uas4qZh7PSm1hcfjPI8gdI="
34-
- provider: npm
35-
skip_cleanup: true
36-
37-
on:
38-
branch: release
39-
api_key:
40-
secure: "FM9QLOkFq6JpHlfHkT1i2Ht1ZlttZLq7K3kQNLabw7Z5+BPMcy/f3LRJkAkYMezrKLKRkq1uXmhY0BapoTnR9AVEO/t4g6dtbZ1TZ3xBH/HHnFofTFubOrc7+61DJzKduYtnQ/sn3EEOkN8jrXSY9uas4qZh7PSm1hcfjPI8gdI="
41-
- provider: npm
42-
skip_cleanup: true
43-
44-
on:
45-
branch: release-patch
31+
all_branches: true
4632
api_key:
4733
secure: "FM9QLOkFq6JpHlfHkT1i2Ht1ZlttZLq7K3kQNLabw7Z5+BPMcy/f3LRJkAkYMezrKLKRkq1uXmhY0BapoTnR9AVEO/t4g6dtbZ1TZ3xBH/HHnFofTFubOrc7+61DJzKduYtnQ/sn3EEOkN8jrXSY9uas4qZh7PSm1hcfjPI8gdI="

0 commit comments

Comments
 (0)