Skip to content

Commit 2303a33

Browse files
committed
feat(scripts/ci-after-success): switch to/enable main as primary branch
1 parent 53be95b commit 2303a33

File tree

2 files changed

+11
-4
lines changed

2 files changed

+11
-4
lines changed

src/scripts/__tests__/ci-after-success.js

+3-3
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ cases(
1111
isOptedOutOfCoverage = false,
1212
env = {
1313
CI: 'true',
14-
CF_BRANCH: 'master',
14+
CF_BRANCH: 'main',
1515
},
1616
}) => {
1717
// beforeEach
@@ -55,7 +55,7 @@ cases(
5555
'calls concurrently with both scripts when on travis': {
5656
env: {
5757
TRAVIS: 'true',
58-
TRAVIS_BRANCH: 'master',
58+
TRAVIS_BRANCH: 'main',
5959
TRAVIS_PULL_REQUEST: 'false',
6060
},
6161
},
@@ -78,7 +78,7 @@ cases(
7878
'does not do autorelease script when running on travis but in a pull request': {
7979
env: {
8080
TRAVIS: 'true',
81-
TRAVIS_BRANCH: 'master',
81+
TRAVIS_BRANCH: 'main',
8282
TRAVIS_PULL_REQUEST: 'true',
8383
},
8484
},

src/scripts/ci-after-success.js

+8-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,14 @@ const {
1010
parseEnv,
1111
} = require('../utils')
1212

13-
const releaseBranches = ['master', 'next', 'next-major', 'beta', 'alpha']
13+
const releaseBranches = [
14+
'main',
15+
'master',
16+
'next',
17+
'next-major',
18+
'beta',
19+
'alpha',
20+
]
1421
const branch = CF_BRANCH || TRAVIS_BRANCH
1522
const isCI = parseEnv('TRAVIS', false) || parseEnv('CI', false)
1623

0 commit comments

Comments
 (0)