-
Notifications
You must be signed in to change notification settings - Fork 9
/
.release-it.root.cjs
60 lines (58 loc) · 1.46 KB
/
.release-it.root.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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
const path = require('path')
const { globSync } = require('glob')
/* THIS IS A QUICK FALLBACK WHEN THERE ARE NO RELEASES */
const staged = globSync('./ci/staged/*.json', { cwd: __dirname })
if (staged.length === 0) {
module.exports = {
git: false,
npm: false,
github: false,
'disable-metrics': true,
}
return
}
module.exports = {
git: {
requireCleanWorkingDir: false,
tag: true,
commit: true,
requireBranch: 'master',
commitMessage: 'chore(release): v${version} -- updated ${affectedModules} modules [skip ci]\n\n${updateLog}',
tagName: 'microfleet@v${version}',
tagAnnotation: 'Release ${stagedModule.version}\n\n${stagedModule.changelog}',
pnpm: true,
changelog: true,
bump: true,
infile: 'CHANGELOG.md',
},
npm: {
publish: false,
},
github: false,
plugins: {
'@release-it/conventional-changelog': {
infile: false,
preset: {
name: 'angular',
parserOpts: {
noteKeywords: ["BREAKING CHANGE", "BREAKING CHANGES", "BREAKING"]
}
}
},
[path.resolve(__dirname, './ci/pnpm-git.js')]: {},
[require.resolve('release-it/lib/plugin/github/GitHub')]: {
release: true,
releaseName: "Release ${version}",
releaseNotes: null,
preRelease: false,
draft: false,
tokenRef: "GITHUB_TOKEN",
assets: null,
host: null,
timeout: 0,
proxy: null,
skipChecks: false
},
},
'disable-metrics': true,
}