semantic-release 21.0.0-beta.1 → 21.0.0-beta.3
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/bin/semantic-release.js
CHANGED
|
@@ -25,7 +25,7 @@ See https://github.com/semantic-release/semantic-release/blob/master/docs/suppor
|
|
|
25
25
|
|
|
26
26
|
execa("git", ["--version"])
|
|
27
27
|
.then(({ stdout }) => {
|
|
28
|
-
const gitVersion = findVersions(stdout)[0];
|
|
28
|
+
const gitVersion = findVersions(stdout, { loose: true })[0];
|
|
29
29
|
if (lt(gitVersion, MIN_GIT_VERSION)) {
|
|
30
30
|
console.error(`[semantic-release]: Git version ${MIN_GIT_VERSION} is required. Found ${gitVersion}.`);
|
|
31
31
|
process.exit(1);
|
|
@@ -62,7 +62,7 @@ The Git history of the repository is now:
|
|
|
62
62
|
|
|
63
63
|
We now decide to work on another future major release, in parallel of the beta one, which will also be composed of multiple features, some of them being breaking changes.
|
|
64
64
|
|
|
65
|
-
To implement that workflow we can create the branch `alpha` from the branch `beta` and commit our first feature there. When pushing that commit, **semantic-release** will publish the pre-release version `3.0.0-alpha.1` on the dist-tag `@alpha`. That allow us to run integration tests by installing our module with `npm install example-module@alpha`. Other users installing with `npm install example-module` will still receive the version `1.0.
|
|
65
|
+
To implement that workflow we can create the branch `alpha` from the branch `beta` and commit our first feature there. When pushing that commit, **semantic-release** will publish the pre-release version `3.0.0-alpha.1` on the dist-tag `@alpha`. That allow us to run integration tests by installing our module with `npm install example-module@alpha`. Other users installing with `npm install example-module` will still receive the version `1.0.1`.
|
|
66
66
|
|
|
67
67
|
The Git history of the repository is now:
|
|
68
68
|
|
|
@@ -12,7 +12,7 @@ See [Release workflow recipes](../recipes/release-workflow/README.md#release-wor
|
|
|
12
12
|
The release workflow is configured via the [branches option](./configuration.md#branches) which accepts a single or an array of branch definitions.
|
|
13
13
|
Each branch can be defined either as a string, a [glob](https://github.com/micromatch/micromatch#matching-features) or an object. For string and glob definitions each [property](#branches-properties) will be defaulted.
|
|
14
14
|
|
|
15
|
-
A branch can defined as one of three types:
|
|
15
|
+
A branch can be defined as one of three types:
|
|
16
16
|
|
|
17
17
|
- [release](#release-branches): to make releases on top of the last version released
|
|
18
18
|
- [maintenance](#maintenance-branches): to make releases on top of an old release
|
package/lib/plugins/utils.js
CHANGED
|
@@ -52,14 +52,12 @@ export async function loadPlugin({ cwd }, name, pluginsPath) {
|
|
|
52
52
|
? dirname(resolveFrom.silent(__dirname, pluginsPath[name]) || resolveFrom(cwd, pluginsPath[name]))
|
|
53
53
|
: __dirname;
|
|
54
54
|
|
|
55
|
-
// See https://github.com/mysticatea/eslint-plugin-node/issues/250
|
|
56
55
|
if (isFunction(name)) {
|
|
57
56
|
return name;
|
|
58
57
|
}
|
|
59
58
|
|
|
60
|
-
const
|
|
61
|
-
|
|
62
|
-
);
|
|
59
|
+
const file = resolveFrom.silent(basePath, name) || resolveFrom(cwd, name);
|
|
60
|
+
const { default: cjsExport, ...esmNamedExports } = await import(`file://${file}`);
|
|
63
61
|
|
|
64
62
|
if (cjsExport) {
|
|
65
63
|
return cjsExport;
|
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": "21.0.0-beta.
|
|
4
|
+
"version": "21.0.0-beta.3",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"author": "Stephan Bönnemann <stephan@boennemann.me> (http://boennemann.me)",
|
|
7
7
|
"ava": {
|
|
@@ -29,7 +29,7 @@
|
|
|
29
29
|
"@semantic-release/commit-analyzer": "^9.0.2",
|
|
30
30
|
"@semantic-release/error": "^3.0.0",
|
|
31
31
|
"@semantic-release/github": "^8.0.0",
|
|
32
|
-
"@semantic-release/npm": "^10.0.0-beta.
|
|
32
|
+
"@semantic-release/npm": "^10.0.0-beta.3",
|
|
33
33
|
"@semantic-release/release-notes-generator": "^10.0.0",
|
|
34
34
|
"aggregate-error": "^4.0.1",
|
|
35
35
|
"cosmiconfig": "^8.0.0",
|