-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathrelease.config.js
62 lines (61 loc) · 1.82 KB
/
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
57
58
59
60
61
62
/* eslint-disable no-undef */
// npx semantic-release --no-ci --branch=semantic-release-plus --extends=./packages/nx-shopify/release.config.js --debug
const name = 'nx-shopify';
const srcRoot = `packages/${name}`;
module.exports = {
branches: [
'+([0-9])?(.{+([0-9]),x}).x',
'master',
'next',
'next-major',
{ name: 'rc', prerelease: true },
{ name: 'beta', prerelease: true },
{ name: 'alpha', prerelease: true },
],
pkgRoot: `dist/${srcRoot}`,
tagFormat: 'v${version}',
assets: [`CHANGELOG.md`],
plugins: [
'@semantic-release/commit-analyzer',
'@semantic-release/release-notes-generator',
'@semantic-release/github',
[
'@semantic-release/changelog',
{
changelogFile: `CHANGELOG.md`,
},
],
'@semantic-release/npm',
[
'@semantic-release/git',
{
message:
`chore(release): ${name}` +
'-v${nextRelease.version} [skip ci]\n\n${nextRelease.notes}',
},
],
[
'semantic-release-slack-bot',
{
notifyOnSuccess: true,
notifyOnFail: true,
onSuccessTemplate: {
text:
'<!here>\n\n:tada: A new version of `$package_name` has been released at <$repo_url|$repo_path>!\n\n' +
'$release_notes\n\n' +
'The release is available on:\n' +
'• <https://github.com/trafilea/nx-shopify/releases/tag/v$npm_package_version|GitHub release>\n' +
'• <https://www.npmjs.com/package/@trafilea/nx-shopify/v/$npm_package_version|npm package>\n\n' +
'Your <https://github.com/semantic-release/semantic-release|semantic-release> bot',
},
markdownReleaseNotes: true,
branchesConfig: [
{
pattern: 'alpha',
notifyOnFail: false,
},
],
},
],
],
};