Skip to content

Commit f587a7c

Browse files
committed
Build: reconfiguring .travis.yml to use on conditions
1 parent 4abdde9 commit f587a7c

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

.travis.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,7 @@ node_js:
55

66
stages:
77
- test
8-
- name: release
9-
if: branch IN (master, react-16, react-17) && type != pull_request
8+
- release
109

1110
jobs:
1211
include:
@@ -17,3 +16,6 @@ jobs:
1716
provider: script
1817
skip_cleanup: true
1918
script: npx semantic-release
19+
on:
20+
all_branches: true
21+
condition: $TRAVIS_BRANCH =~ ^(master|react-16|react-17)$

0 commit comments

Comments
 (0)