-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathrelease.config.js
56 lines (51 loc) · 956 Bytes
/
release.config.js
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
const { GIT_BRANCH: branch } = process.env;
const commitAnalyzer = '@semantic-release/commit-analyzer';
const releaseNotesGenerator = '@semantic-release/release-notes-generator';
const git = [
'@semantic-release/git',
{
assets: [
'CHANGELOG.md',
'README.md',
'package.json',
'deno.json',
'deno.lock',
],
},
];
const npm = '@semantic-release/npm';
const github = [
'@semantic-release/github',
];
const changelog = [
'@semantic-release/changelog',
{
changelogFile: 'CHANGELOG.md',
},
];
const defaultPlugins = [
commitAnalyzer,
releaseNotesGenerator,
npm,
git,
];
const mainPlugins = [
commitAnalyzer,
releaseNotesGenerator,
changelog,
npm,
git,
github,
];
module.exports = {
dryRun: true,
branches: [
'main',
{
name: 'arcctl-*',
prerelease: true,
},
],
plugins: branch === 'main' ? mainPlugins : defaultPlugins,
};
console.log(module.exports);