-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathrelease.config.js
80 lines (75 loc) · 2.79 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
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
export default {
plugins: [
// @semantic-release/commit-analyzer
// analyzeCommits: Determine the type of release by analyzing commits with conventional-changelog
"@semantic-release/commit-analyzer",
// "@google/semantic-release-replace-plugin"
// Replaces version number in readme.txt and uk-address-postcode-validation
[
"@google/semantic-release-replace-plugin",
{
replacements: [
{
files: ["uk-address-postcode-validation/readme.txt"],
from: "Stable tag: .*",
to: "Stable tag: ${nextRelease.version}",
results: [
{
file: "uk-address-postcode-validation/readme.txt",
hasChanged: true,
numMatches: 1,
numReplacements: 1,
},
],
countMatches: true,
},
{
files: [
"uk-address-postcode-validation/uk-address-postcode-validation.php",
],
from: "Version: .*",
to: "Version: ${nextRelease.version}",
results: [
{
file:
"uk-address-postcode-validation/uk-address-postcode-validation.php",
hasChanged: true,
numMatches: 1,
numReplacements: 1,
},
],
countMatches: true,
},
],
},
],
// @semantic-release/release-notes-generator
// generateNotes: Generate release notes for the commits added since the last release with conventional-changelog
"@semantic-release/release-notes-generator",
// @semantic-release/changelog
// verifyConditions: Verify the presence and the validity of the configuration
// prepare: Create or update the changelog file in the local project repository
"@semantic-release/changelog",
// @semantic-release/git
// verifyConditions: Verify the presence and the validity of the Git authentication and release configuration
// prepare: Push a release commit and tag, including configurable files
[
"@semantic-release/git",
{
assets: [
"uk-address-postcode-validation/uk-address-postcode-validation.php",
"uk-address-postcode-validation/readme.txt",
"CHANGELOG.md",
],
"message": "chore(release): ${nextRelease.version} \n\n${nextRelease.notes}"
},
],
// @semantic-release/github
// verifyConditions: Verify the presence and the validity of the GitHub authentication and release configuration
// publish: Publish a GitHub release
// success: Add a comment to GitHub issues and pull requests resolved in the release
// fail: Open a GitHub issue when a release fails
"@semantic-release/github",
],
tagFormat: "${version}",
};