-
Notifications
You must be signed in to change notification settings - Fork 8
/
release.config.cjs
41 lines (35 loc) · 1.04 KB
/
release.config.cjs
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
// /* eslint-disable import/order */
// const isCI = require('is-ci')
// !isCI && require('dotenv').config({ path: './.env' })
// const { getConfig } = require('@jeromefitz/semantic')
const _map = require('lodash/map.js')
const { getConfig } = require('./packages/semantic/dist/index.cjs')
const releaseBranchTypes = require('./scripts/release-branch-types/index.cjs')
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' },
...branchTypes,
]
const config = {
branches,
contributorsProhibitList: {
email: [],
login: ['BotJerome', 'JeromeFitz'],
},
}
// const _config = getConfig(config)
module.exports.config = config
module.exports.getConfig = getConfig