-
Notifications
You must be signed in to change notification settings - Fork 9
Expand file tree
/
Copy pathrelease.config.react.mts
More file actions
50 lines (48 loc) · 1.24 KB
/
release.config.react.mts
File metadata and controls
50 lines (48 loc) · 1.24 KB
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
/**
* React package release config. Use with semantic-release-monorepo from packages/react:
* cd packages/react && npx semantic-release -e semantic-release-monorepo -c ../../release.config.react.mts
* Paths below are relative to packages/react (cwd when run from that directory).
*/
import type { GlobalConfig } from 'semantic-release';
const config: GlobalConfig = {
branches: ['main', { name: 'beta', prerelease: true }],
plugins: [
'@semantic-release/commit-analyzer',
'@semantic-release/release-notes-generator',
[
'@semantic-release/changelog',
{
changelogFile: 'CHANGELOG.md',
},
],
[
'@semantic-release/npm',
{
pkgRoot: '.',
npmPublish: false,
},
],
[
'@semantic-release/exec',
{
prepareCmd: 'nx run react:build',
},
],
[
'@semantic-release/npm',
{
pkgRoot: '../../dist/packages/react',
npmPublish: true,
},
],
'@semantic-release/github',
[
'@semantic-release/git',
{
assets: ['package.json', 'CHANGELOG.md'],
message: 'chore(release): @ntcore/react ${nextRelease.version} [skip ci]\n\n${nextRelease.notes}',
},
],
],
};
export default config;