semantic-release 22.0.5 → 22.0.7
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/extending/plugins-list.md +3 -0
- package/docs/support/FAQ.md +1 -1
- package/docs/usage/configuration.md +11 -0
- package/lib/get-config.js +12 -4
- package/package.json +36 -15
|
@@ -179,6 +179,9 @@
|
|
|
179
179
|
- [semantic-release-coralogix](https://github.com/adobe/semantic-release-coralogix)
|
|
180
180
|
- `verifyConditions` Verified that required credentials are provided and API is accessible
|
|
181
181
|
- `publish` add a release tag to Coralogix
|
|
182
|
+
- [semantic-release-jira-notes](https://github.com/iamludal/semantic-release-jira-notes)
|
|
183
|
+
- `verifyConditions`: Validate the config options.
|
|
184
|
+
- `generateNotes`: Generate the release notes with links to JIRA issues.
|
|
182
185
|
- [semantic-release-major-tag](https://github.com/doteric/semantic-release-major-tag)
|
|
183
186
|
- `success` Create major version tag, for example `v1`.
|
|
184
187
|
- [semantic-release-yarn](https://github.com/hongaar/semantic-release-yarn)
|
package/docs/support/FAQ.md
CHANGED
|
@@ -195,7 +195,7 @@ If you need more control over the timing of releases, see [Triggering a release]
|
|
|
195
195
|
|
|
196
196
|
## Can I set the initial release version of my package to `0.0.1`?
|
|
197
197
|
|
|
198
|
-
This is not supported by
|
|
198
|
+
This is not supported by semantic-release. [Semantic Versioning](https://semver.org/) rules apply differently to major version zero and supporting those differences is out of scope and not one of the goals of the semantic-release project.
|
|
199
199
|
|
|
200
200
|
If your project is under heavy development, with frequent breaking changes, and is not production ready yet we recommend [publishing pre-releases](../recipes/release-workflow/pre-releases.md#publishing-pre-releases).
|
|
201
201
|
|
|
@@ -40,6 +40,17 @@ The following three examples are the same.
|
|
|
40
40
|
}
|
|
41
41
|
```
|
|
42
42
|
|
|
43
|
+
- Via `release.config.cjs` file:
|
|
44
|
+
|
|
45
|
+
```js
|
|
46
|
+
/**
|
|
47
|
+
* @type {import('semantic-release').GlobalConfig}
|
|
48
|
+
*/
|
|
49
|
+
module.exports = {
|
|
50
|
+
branches: ["master", "next"],
|
|
51
|
+
};
|
|
52
|
+
```
|
|
53
|
+
|
|
43
54
|
- Via CLI argument:
|
|
44
55
|
|
|
45
56
|
```bash
|
package/lib/get-config.js
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import { dirname,
|
|
1
|
+
import { dirname, extname } from "node:path";
|
|
2
2
|
import { fileURLToPath } from "node:url";
|
|
3
|
-
import { createRequire } from "node:module";
|
|
4
3
|
|
|
5
4
|
import { castArray, isNil, isPlainObject, isString, pickBy } from "lodash-es";
|
|
6
5
|
import { readPackageUp } from "read-pkg-up";
|
|
@@ -14,7 +13,6 @@ import { parseConfig, validatePlugin } from "./plugins/utils.js";
|
|
|
14
13
|
|
|
15
14
|
const debug = debugConfig("semantic-release:config");
|
|
16
15
|
const __dirname = dirname(fileURLToPath(import.meta.url));
|
|
17
|
-
const require = createRequire(import.meta.url);
|
|
18
16
|
|
|
19
17
|
const CONFIG_NAME = "release";
|
|
20
18
|
|
|
@@ -35,7 +33,17 @@ export default async (context, cliOptions) => {
|
|
|
35
33
|
options = {
|
|
36
34
|
...(await castArray(extendPaths).reduce(async (eventualResult, extendPath) => {
|
|
37
35
|
const result = await eventualResult;
|
|
38
|
-
const
|
|
36
|
+
const resolvedPath = resolveFrom.silent(__dirname, extendPath) || resolveFrom(cwd, extendPath);
|
|
37
|
+
const importAssertions =
|
|
38
|
+
extname(resolvedPath) === ".json"
|
|
39
|
+
? {
|
|
40
|
+
assert: {
|
|
41
|
+
type: "json",
|
|
42
|
+
},
|
|
43
|
+
}
|
|
44
|
+
: undefined;
|
|
45
|
+
|
|
46
|
+
const { default: extendsOptions } = await import(resolvedPath, importAssertions);
|
|
39
47
|
|
|
40
48
|
// For each plugin defined in a shareable config, save in `pluginsPath` the extendable config path,
|
|
41
49
|
// so those plugin will be loaded relative to the config file
|
package/package.json
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "semantic-release",
|
|
3
3
|
"description": "Automated semver compliant package publishing",
|
|
4
|
-
"version": "22.0.
|
|
4
|
+
"version": "22.0.7",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"author": "Stephan Bönnemann <stephan@boennemann.me> (http://boennemann.me)",
|
|
7
7
|
"ava": {
|
|
8
8
|
"files": [
|
|
9
|
-
"test/**/*.test.js"
|
|
9
|
+
"test/**/*.test.js",
|
|
10
|
+
"!test/integration.test.js"
|
|
10
11
|
],
|
|
11
|
-
"failFast": true,
|
|
12
12
|
"nodeArguments": [
|
|
13
13
|
"--loader=testdouble",
|
|
14
14
|
"--no-warnings"
|
|
@@ -37,7 +37,7 @@
|
|
|
37
37
|
"debug": "^4.0.0",
|
|
38
38
|
"env-ci": "^10.0.0",
|
|
39
39
|
"execa": "^8.0.0",
|
|
40
|
-
"figures": "^
|
|
40
|
+
"figures": "^6.0.0",
|
|
41
41
|
"find-versions": "^5.1.0",
|
|
42
42
|
"get-stream": "^6.0.0",
|
|
43
43
|
"git-log-parser": "^1.2.0",
|
|
@@ -49,7 +49,7 @@
|
|
|
49
49
|
"micromatch": "^4.0.2",
|
|
50
50
|
"p-each-series": "^3.0.0",
|
|
51
51
|
"p-reduce": "^3.0.0",
|
|
52
|
-
"read-pkg-up": "^
|
|
52
|
+
"read-pkg-up": "^11.0.0",
|
|
53
53
|
"resolve-from": "^5.0.0",
|
|
54
54
|
"semver": "^7.3.2",
|
|
55
55
|
"semver-diff": "^4.0.0",
|
|
@@ -61,19 +61,24 @@
|
|
|
61
61
|
"c8": "8.0.1",
|
|
62
62
|
"clear-module": "4.1.2",
|
|
63
63
|
"codecov": "3.8.3",
|
|
64
|
-
"
|
|
64
|
+
"cz-conventional-changelog": "3.3.0",
|
|
65
|
+
"dockerode": "4.0.0",
|
|
65
66
|
"file-url": "4.0.0",
|
|
66
67
|
"fs-extra": "11.1.1",
|
|
67
68
|
"got": "13.0.0",
|
|
68
69
|
"js-yaml": "4.1.0",
|
|
70
|
+
"lockfile-lint": "4.12.1",
|
|
71
|
+
"ls-engines": "0.9.0",
|
|
69
72
|
"mockserver-client": "5.15.0",
|
|
70
|
-
"nock": "13.3.
|
|
71
|
-
"
|
|
73
|
+
"nock": "13.3.8",
|
|
74
|
+
"npm-run-all2": "6.1.1",
|
|
75
|
+
"p-retry": "6.1.0",
|
|
72
76
|
"prettier": "3.0.3",
|
|
73
|
-
"
|
|
77
|
+
"publint": "0.2.5",
|
|
78
|
+
"sinon": "17.0.1",
|
|
74
79
|
"stream-buffers": "3.0.2",
|
|
75
80
|
"tempy": "3.1.0",
|
|
76
|
-
"testdouble": "3.
|
|
81
|
+
"testdouble": "3.20.0"
|
|
77
82
|
},
|
|
78
83
|
"engines": {
|
|
79
84
|
"node": "^18.17 || >=20.6.1"
|
|
@@ -114,6 +119,14 @@
|
|
|
114
119
|
],
|
|
115
120
|
"all": true
|
|
116
121
|
},
|
|
122
|
+
"lockfile-lint": {
|
|
123
|
+
"path": "package-lock.json",
|
|
124
|
+
"type": "npm",
|
|
125
|
+
"validate-https": true,
|
|
126
|
+
"allowed-hosts": [
|
|
127
|
+
"npm"
|
|
128
|
+
]
|
|
129
|
+
},
|
|
117
130
|
"prettier": {
|
|
118
131
|
"printWidth": 120,
|
|
119
132
|
"trailingComma": "es5"
|
|
@@ -126,14 +139,22 @@
|
|
|
126
139
|
"type": "git",
|
|
127
140
|
"url": "git+https://github.com/semantic-release/semantic-release.git"
|
|
128
141
|
},
|
|
142
|
+
"config": {
|
|
143
|
+
"commitizen": {
|
|
144
|
+
"path": "./node_modules/cz-conventional-changelog"
|
|
145
|
+
}
|
|
146
|
+
},
|
|
129
147
|
"scripts": {
|
|
130
148
|
"codecov": "codecov -f coverage/coverage-final.json",
|
|
131
|
-
"lint": "prettier --check \"*.{js,json,md}\" \".github/**/*.{md,yml}\" \"docs/**/*.md\" \"{bin,lib,test}/**/*.js\"",
|
|
132
|
-
"lint:fix": "prettier --write \"*.{js,json,md}\" \".github/**/*.{md,yml}\" \"docs/**/*.md\" \"{bin,lib,test}/**/*.js\"",
|
|
133
|
-
"
|
|
149
|
+
"lint:prettier": "prettier --check \"*.{js,json,md}\" \".github/**/*.{md,yml}\" \"docs/**/*.md\" \"{bin,lib,test}/**/*.js\"",
|
|
150
|
+
"lint:prettier:fix": "prettier --write \"*.{js,json,md}\" \".github/**/*.{md,yml}\" \"docs/**/*.md\" \"{bin,lib,test}/**/*.js\"",
|
|
151
|
+
"lint:lockfile": "lockfile-lint",
|
|
152
|
+
"lint:engines": "ls-engines",
|
|
153
|
+
"lint:publish": "publint --strict",
|
|
134
154
|
"semantic-release": "./bin/semantic-release.js",
|
|
135
|
-
"test": "
|
|
136
|
-
"test:
|
|
155
|
+
"test": "npm-run-all --print-label --parallel lint:* --parallel test:*",
|
|
156
|
+
"test:unit": "c8 ava --verbose",
|
|
157
|
+
"test:integration": "ava --verbose test/integration.test.js"
|
|
137
158
|
},
|
|
138
159
|
"renovate": {
|
|
139
160
|
"extends": [
|