This repository was archived by the owner on Jan 21, 2026. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathrelease.config.js
More file actions
87 lines (87 loc) · 2.31 KB
/
release.config.js
File metadata and controls
87 lines (87 loc) · 2.31 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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
// release.config.js
module.exports = {
branches: [
"+([0-9])?(.{+([0-9]),x}).x",
"main",
"next",
"next-major",
{ name: "beta", prerelease: true },
{ name: "alpha", prerelease: true },
],
verifyConditions: ["@semantic-release/changelog", "@semantic-release/git"],
plugins: [
"@semantic-release/commit-analyzer",
"@semantic-release/release-notes-generator",
"@semantic-release/changelog",
[
"@semantic-release/npm",
{
// tarballDir: './tmp',
npmPublish: false,
},
],
[
"@semantic-release/npm",
{
npmPublish: true,
pkgRoot: "packages/@cm4all-wp-impex/generator",
},
],
[
"@semantic-release/exec",
{
prepareCmd:
"sed -i 's/Version:\\(.*\\)/Version: ${nextRelease.version}/' plugins/*/plugin.php && make dist",
publishCmd: "SVN_TAG='${nextRelease.version}' make deploy-to-wordpress",
},
],
[
"@semantic-release/git",
{
assets: [
"CHANGELOG.md",
"package-lock.json",
"package.json",
"plugins/cm4all-wp-impex/plugin.php",
"plugins/cm4all-wp-impex-example/plugin.php",
"packages/@cm4all-wp-impex/generator/package.json",
],
message:
"chore(release): ${nextRelease.version} [skip release]\n\n${nextRelease.notes}",
},
],
[
"@semantic-release/github",
{
assets: [
{
path: "dist/cm4all-wp-impex-v*.zip",
label: "Impex plugin",
},
{
path: "dist/cm4all-wp-impex-php*-v*.zip",
label: "Impex plugin for PHP 7.4",
},
{
path: "dist/cm4all-wp-impex-cli-v*.zip",
label: "Impex CLI",
},
{
path: "dist/cm4all-wp-impex-example-v*.zip",
label: "optional third-party ImpEx integration example plugin",
},
{
path: "dist/cm4all-wp-impex-gh-pages-v*.zip",
label: "documentation for offline usage",
},
{
path: "dist/cm4all-wp-impex/readme.txt",
label: "Impex plugin readme for the WordPress plugin directory",
},
],
},
],
],
preset: "conventionalCommits",
tagFormat: "${version}",
};