@ethima/semantic-release-configuration 2.1.0 → 3.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -86,14 +86,9 @@ structure:
86
86
  - A `<!-- START_VERSIONED_TEMPLATE` token,
87
87
  - the template itself with one or more
88
88
  `__NEXT_SEMANTIC_RELEASE_VERSION__` tokens,
89
- - a comment closing tag `-->
90
-
91
- ` token,
92
- - the template itself with one or more
93
- `2.1.0` tokens,
94
- - a comment closing tag `
95
-
96
- <!-- END_VERSIONED_TEMPLATE -->`.
89
+ - a comment closing tag `-->`,
90
+ - (optionally) content that was previously templated,
91
+ - a comment closing the templated content `<!-- END_VERSIONED_TEMPLATE -->`.
97
92
 
98
93
  More concretely a section in a `README` that looks like
99
94
 
@@ -103,9 +98,6 @@ More concretely a section in a `README` that looks like
103
98
  The next semantically released version will be v__NEXT_SEMANTIC_RELEASE_VERSION__!
104
99
 
105
100
  -->
106
-
107
- The next semantically released version will be v2.1.0!
108
-
109
101
  <!-- END_VERSIONED_TEMPLATE -->
110
102
  ```
111
103
 
@@ -119,7 +111,7 @@ The next semantically released version will be v__NEXT_SEMANTIC_RELEASE_VERSION_
119
111
 
120
112
  -->
121
113
 
122
- The next semantically released version will be v2.1.0!
114
+ The next semantically released version will be v1.2.3!
123
115
 
124
116
  <!-- END_VERSIONED_TEMPLATE -->
125
117
  ```
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ethima/semantic-release-configuration",
3
- "version": "2.1.0",
3
+ "version": "3.0.0",
4
4
  "description": "A shareable semantic release configuration supporting a range of languages and platforms supported by the Ethima organization.",
5
5
  "main": "./src/index.js",
6
6
  "repository": {
@@ -22,6 +22,7 @@
22
22
  "@semantic-release/changelog": "6.0.2",
23
23
  "@semantic-release/git": "10.0.1",
24
24
  "@semantic-release/gitlab": "9.5.1",
25
+ "conventional-changelog-conventionalcommits": "5.0.0",
25
26
  "cosmiconfig": "8.0.0"
26
27
  }
27
28
  }
@@ -11,9 +11,6 @@ const ethimaConfig = cosmiconfigSync("ethima").search();
11
11
  // sufficient for the current configuration needs, which tend to be simple
12
12
  // values and doing a deep merge would add currently unnecessary complexity.
13
13
  // This can be revisited once the need arises
14
- const CONFIGURATION = {
15
- ...CONFIGURATION_DEFAULTS,
16
- ...(ethimaConfig.config || {}),
17
- };
14
+ const CONFIGURATION = { ...CONFIGURATION_DEFAULTS, ...ethimaConfig?.config };
18
15
 
19
16
  module.exports = CONFIGURATION;
package/src/index.js CHANGED
@@ -21,7 +21,7 @@ try {
21
21
  const SEMANTIC_RELEASE_CONFIGURATION = {
22
22
  branches: [env.CI_DEFAULT_BRANCH],
23
23
  plugins: [
24
- "@semantic-release/commit-analyzer",
24
+ ["@semantic-release/commit-analyzer", { preset: "conventionalcommits" }],
25
25
  "@semantic-release/release-notes-generator",
26
26
  [
27
27
  "@semantic-release/changelog",