semantic-release 24.0.0-beta.2 → 24.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/docs/usage/configuration.md +13 -2
- package/package.json +4 -4
|
@@ -14,8 +14,8 @@ Additionally, metadata of Git tags generated by **semantic-release** can be cust
|
|
|
14
14
|
|
|
15
15
|
**semantic-release**’s [options](#options), mode and [plugins](plugins.md) can be set via either:
|
|
16
16
|
|
|
17
|
-
- A `.releaserc` file, written in YAML or JSON, with optional extensions: `.yaml`/`.yml`/`.json`/`.js`/`.cjs`
|
|
18
|
-
- A `release.config.(js|cjs)` file that exports an object
|
|
17
|
+
- A `.releaserc` file, written in YAML or JSON, with optional extensions: `.yaml`/`.yml`/`.json`/`.js`/`.cjs`/`.mjs`
|
|
18
|
+
- A `release.config.(js|cjs|.mjs)` file that exports an object
|
|
19
19
|
- A `release` key in the project's `package.json` file
|
|
20
20
|
|
|
21
21
|
Alternatively, some options can be set via CLI arguments.
|
|
@@ -51,6 +51,17 @@ module.exports = {
|
|
|
51
51
|
};
|
|
52
52
|
```
|
|
53
53
|
|
|
54
|
+
- Via `release.config.mjs` file:
|
|
55
|
+
|
|
56
|
+
```js
|
|
57
|
+
/**
|
|
58
|
+
* @type {import('semantic-release').GlobalConfig}
|
|
59
|
+
*/
|
|
60
|
+
export default {
|
|
61
|
+
branches: ["master", "next"],
|
|
62
|
+
};
|
|
63
|
+
```
|
|
64
|
+
|
|
54
65
|
- Via CLI argument:
|
|
55
66
|
|
|
56
67
|
```bash
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "semantic-release",
|
|
3
3
|
"description": "Automated semver compliant package publishing",
|
|
4
|
-
"version": "24.0.0
|
|
4
|
+
"version": "24.0.0",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"author": "Stephan Bönnemann <stephan@boennemann.me> (http://boennemann.me)",
|
|
7
7
|
"ava": {
|
|
@@ -66,7 +66,7 @@
|
|
|
66
66
|
"dockerode": "4.0.2",
|
|
67
67
|
"file-url": "4.0.0",
|
|
68
68
|
"fs-extra": "11.2.0",
|
|
69
|
-
"got": "14.
|
|
69
|
+
"got": "14.3.0",
|
|
70
70
|
"js-yaml": "4.1.0",
|
|
71
71
|
"lockfile-lint": "4.13.2",
|
|
72
72
|
"ls-engines": "0.9.1",
|
|
@@ -75,7 +75,7 @@
|
|
|
75
75
|
"npm-run-all2": "6.2.0",
|
|
76
76
|
"p-retry": "6.2.0",
|
|
77
77
|
"prettier": "3.2.5",
|
|
78
|
-
"publint": "0.2.
|
|
78
|
+
"publint": "0.2.8",
|
|
79
79
|
"sinon": "18.0.0",
|
|
80
80
|
"stream-buffers": "3.0.2",
|
|
81
81
|
"tempy": "3.1.0",
|
|
@@ -162,5 +162,5 @@
|
|
|
162
162
|
"github>semantic-release/.github:renovate-config"
|
|
163
163
|
]
|
|
164
164
|
},
|
|
165
|
-
"packageManager": "npm@10.8.
|
|
165
|
+
"packageManager": "npm@10.8.1"
|
|
166
166
|
}
|