-
Notifications
You must be signed in to change notification settings - Fork 5
/
release.config.mjs
49 lines (41 loc) · 1.12 KB
/
release.config.mjs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
import { getConfig } from '@jeromefitz/semantic'
import isCI from 'is-ci'
import _map from 'lodash/map.js'
import releaseBranchTypes from './config/release-branch-types/index.cjs'
if (!isCI) {
const dotenv = await import('dotenv')
dotenv.config({ path: './.env' })
}
const branchTypes = _map(
releaseBranchTypes,
(releaseBranchType, releaseBranchTypeIndex) => {
return _map(releaseBranchType, (branchType) => {
return (
!!branchType && {
name: `${releaseBranchTypeIndex}/${branchType}`,
prerelease: branchType,
}
)
})[0]
},
).filter((branchType) => !!branchType)
const branches = [
{ name: 'main' },
{ name: 'canary', prerelease: 'canary' },
{ name: 'NICE-67', prerelease: 'NICE-67' },
{ name: 'deps/semantic-release-24.x', prerelease: 'canary' },
...branchTypes,
]
const config = {
branches,
contributorsProhibitList: {
email: [],
login: ['BotJerome', 'JeromeFitz'],
},
enableNpm: false,
}
// const _config = getConfig(config)
const _config = config
export { _config as config }
const _getConfig = getConfig
export { _getConfig as getConfig }