-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathrelease.config.js
More file actions
69 lines (64 loc) · 2.25 KB
/
release.config.js
File metadata and controls
69 lines (64 loc) · 2.25 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
module.exports = {
plugins: [
// @semantic-release/commit-analyzer
// analyzeCommits: Determine the type of release by analyzing commits with conventional-changelog
"@semantic-release/commit-analyzer",
// "semantic-release-replace-plugin"
// "semantic-release-replace-plugin"
// Replaces version number in readme.txt and uk-address-postcode-validation
[
"semantic-release-replace-plugin",
{
replacements: [
{
files: ["src/install.json"],
from: /"version"\s*:\s*".*"/,
to: "\"version\": \"${nextRelease.version}\"",
results: [
{
file: "src/install.json",
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: ["src/install.json", "CHANGELOG.md"],
},
],
// @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",
{
assets: [
{
path: ["idealpostcodes.ocmod.zip"],
label: "Ideal Postcodes Open Cart Module ${nextRelease.version}"
},
],
},
],
],
tagFormat: "${version}",
};