semantic-release 22.0.7 → 22.0.9
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 +1 -1
- package/lib/branches/normalize.js +1 -1
- package/lib/get-config.js +3 -13
- package/lib/get-git-auth-url.js +1 -1
- package/package.json +11 -10
package/README.md
CHANGED
|
@@ -69,7 +69,7 @@ The table below shows which commit message gets you which release type when `sem
|
|
|
69
69
|
### Automation with CI
|
|
70
70
|
|
|
71
71
|
**semantic-release** is meant to be executed on the CI environment after every successful build on the release branch.
|
|
72
|
-
This way no human is directly involved in the release process and the releases are guaranteed to be [unromantic and unsentimental](
|
|
72
|
+
This way no human is directly involved in the release process and the releases are guaranteed to be [unromantic and unsentimental](https://github.com/dominictarr/sentimental-versioning#readme).
|
|
73
73
|
|
|
74
74
|
### Triggering a release
|
|
75
75
|
|
|
@@ -60,7 +60,7 @@ export function release({ release }) {
|
|
|
60
60
|
return release;
|
|
61
61
|
}
|
|
62
62
|
|
|
63
|
-
// The
|
|
63
|
+
// The initial lastVersion is the last release from the base branch of `FIRST_RELEASE` (1.0.0)
|
|
64
64
|
let lastVersion = getLatestVersion(tagsToVersions(release[0].tags)) || FIRST_RELEASE;
|
|
65
65
|
|
|
66
66
|
return release.map(({ name, tags, channel, ...rest }, idx) => {
|
package/lib/get-config.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { dirname
|
|
1
|
+
import { dirname } from "node:path";
|
|
2
2
|
import { fileURLToPath } from "node:url";
|
|
3
3
|
|
|
4
4
|
import { castArray, isNil, isPlainObject, isString, pickBy } from "lodash-es";
|
|
5
5
|
import { readPackageUp } from "read-pkg-up";
|
|
6
6
|
import { cosmiconfig } from "cosmiconfig";
|
|
7
|
-
import
|
|
7
|
+
import importFrom from "import-from-esm";
|
|
8
8
|
import debugConfig from "debug";
|
|
9
9
|
import { repoUrl } from "./git.js";
|
|
10
10
|
import PLUGINS_DEFINITIONS from "./definitions/plugins.js";
|
|
@@ -33,17 +33,7 @@ export default async (context, cliOptions) => {
|
|
|
33
33
|
options = {
|
|
34
34
|
...(await castArray(extendPaths).reduce(async (eventualResult, extendPath) => {
|
|
35
35
|
const result = await eventualResult;
|
|
36
|
-
const
|
|
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);
|
|
36
|
+
const extendsOptions = (await importFrom.silent(__dirname, extendPath)) || (await importFrom(cwd, extendPath));
|
|
47
37
|
|
|
48
38
|
// For each plugin defined in a shareable config, save in `pluginsPath` the extendable config path,
|
|
49
39
|
// so those plugin will be loaded relative to the config file
|
package/lib/get-git-auth-url.js
CHANGED
|
@@ -36,7 +36,7 @@ function formatAuthUrl(protocol, repositoryUrl, gitCredentials) {
|
|
|
36
36
|
* @param {Object} context semantic-release context.
|
|
37
37
|
* @param {String} authUrl Repository URL to verify
|
|
38
38
|
*
|
|
39
|
-
* @return {String} The authUrl as is if the connection was
|
|
39
|
+
* @return {String} The authUrl as is if the connection was successful, null otherwise
|
|
40
40
|
*/
|
|
41
41
|
async function ensureValidAuthUrl({ cwd, env, branch }, authUrl) {
|
|
42
42
|
try {
|
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": "22.0.
|
|
4
|
+
"version": "22.0.9",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"author": "Stephan Bönnemann <stephan@boennemann.me> (http://boennemann.me)",
|
|
7
7
|
"ava": {
|
|
@@ -33,7 +33,7 @@
|
|
|
33
33
|
"@semantic-release/npm": "^11.0.0",
|
|
34
34
|
"@semantic-release/release-notes-generator": "^12.0.0",
|
|
35
35
|
"aggregate-error": "^5.0.0",
|
|
36
|
-
"cosmiconfig": "^
|
|
36
|
+
"cosmiconfig": "^9.0.0",
|
|
37
37
|
"debug": "^4.0.0",
|
|
38
38
|
"env-ci": "^10.0.0",
|
|
39
39
|
"execa": "^8.0.0",
|
|
@@ -43,6 +43,7 @@
|
|
|
43
43
|
"git-log-parser": "^1.2.0",
|
|
44
44
|
"hook-std": "^3.0.0",
|
|
45
45
|
"hosted-git-info": "^7.0.0",
|
|
46
|
+
"import-from-esm": "^1.3.1",
|
|
46
47
|
"lodash-es": "^4.17.21",
|
|
47
48
|
"marked": "^9.0.0",
|
|
48
49
|
"marked-terminal": "^6.0.0",
|
|
@@ -57,28 +58,28 @@
|
|
|
57
58
|
"yargs": "^17.5.1"
|
|
58
59
|
},
|
|
59
60
|
"devDependencies": {
|
|
60
|
-
"ava": "
|
|
61
|
+
"ava": "6.0.0",
|
|
61
62
|
"c8": "8.0.1",
|
|
62
63
|
"clear-module": "4.1.2",
|
|
63
64
|
"codecov": "3.8.3",
|
|
64
65
|
"cz-conventional-changelog": "3.3.0",
|
|
65
66
|
"dockerode": "4.0.0",
|
|
66
67
|
"file-url": "4.0.0",
|
|
67
|
-
"fs-extra": "11.
|
|
68
|
-
"got": "
|
|
68
|
+
"fs-extra": "11.2.0",
|
|
69
|
+
"got": "14.0.0",
|
|
69
70
|
"js-yaml": "4.1.0",
|
|
70
71
|
"lockfile-lint": "4.12.1",
|
|
71
|
-
"ls-engines": "0.9.
|
|
72
|
+
"ls-engines": "0.9.1",
|
|
72
73
|
"mockserver-client": "5.15.0",
|
|
73
|
-
"nock": "13.
|
|
74
|
+
"nock": "13.4.0",
|
|
74
75
|
"npm-run-all2": "6.1.1",
|
|
75
76
|
"p-retry": "6.1.0",
|
|
76
|
-
"prettier": "3.0
|
|
77
|
-
"publint": "0.2.
|
|
77
|
+
"prettier": "3.1.0",
|
|
78
|
+
"publint": "0.2.6",
|
|
78
79
|
"sinon": "17.0.1",
|
|
79
80
|
"stream-buffers": "3.0.2",
|
|
80
81
|
"tempy": "3.1.0",
|
|
81
|
-
"testdouble": "3.20.
|
|
82
|
+
"testdouble": "3.20.1"
|
|
82
83
|
},
|
|
83
84
|
"engines": {
|
|
84
85
|
"node": "^18.17 || >=20.6.1"
|