Merge branch 'master' of github.com:semantic-release/semantic-release into beta

This commit is contained in:
Matt Travi 2023-01-27 16:09:41 -06:00
commit d3aae0752c
No known key found for this signature in database
GPG Key ID: CB62529BDFD29894
7 changed files with 3438 additions and 3420 deletions

View File

@ -6,8 +6,14 @@ name: Release
- next - next
- beta - beta
- "*.x" - "*.x"
permissions:
contents: read # for checkout
jobs: jobs:
release: release:
permissions:
contents: write # to be able to publish a GitHub release
issues: write # to be able to comment on released issues
pull-requests: write # to be able to comment on released pull requests
name: release name: release
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:

View File

@ -12,6 +12,9 @@ on:
- opened - opened
- synchronize - synchronize
permissions:
contents: read # to fetch code (actions/checkout)
jobs: jobs:
test_matrix: test_matrix:
strategy: strategy:

View File

@ -25,7 +25,7 @@ See https://github.com/semantic-release/semantic-release/blob/master/docs/suppor
execa("git", ["--version"]) execa("git", ["--version"])
.then(({ stdout }) => { .then(({ stdout }) => {
const gitVersion = findVersions(stdout)[0]; const gitVersion = findVersions(stdout, { loose: true })[0];
if (lt(gitVersion, MIN_GIT_VERSION)) { if (lt(gitVersion, MIN_GIT_VERSION)) {
console.error(`[semantic-release]: Git version ${MIN_GIT_VERSION} is required. Found ${gitVersion}.`); console.error(`[semantic-release]: Git version ${MIN_GIT_VERSION} is required. Found ${gitVersion}.`);
process.exit(1); process.exit(1);

View File

@ -62,7 +62,7 @@ The Git history of the repository is now:
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. 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.
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.0`. 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`.
The Git history of the repository is now: The Git history of the repository is now:

View File

@ -12,7 +12,7 @@ See [Release workflow recipes](../recipes/release-workflow/README.md#release-wor
The release workflow is configured via the [branches option](./configuration.md#branches) which accepts a single or an array of branch definitions. The release workflow is configured via the [branches option](./configuration.md#branches) which accepts a single or an array of branch definitions.
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. 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.
A branch can defined as one of three types: A branch can be defined as one of three types:
- [release](#release-branches): to make releases on top of the last version released - [release](#release-branches): to make releases on top of the last version released
- [maintenance](#maintenance-branches): to make releases on top of an old release - [maintenance](#maintenance-branches): to make releases on top of an old release

View File

@ -52,14 +52,12 @@ export async function loadPlugin({ cwd }, name, pluginsPath) {
? dirname(resolveFrom.silent(__dirname, pluginsPath[name]) || resolveFrom(cwd, pluginsPath[name])) ? dirname(resolveFrom.silent(__dirname, pluginsPath[name]) || resolveFrom(cwd, pluginsPath[name]))
: __dirname; : __dirname;
// See https://github.com/mysticatea/eslint-plugin-node/issues/250
if (isFunction(name)) { if (isFunction(name)) {
return name; return name;
} }
const { default: cjsExport, ...esmNamedExports } = await import( const file = resolveFrom.silent(basePath, name) || resolveFrom(cwd, name);
resolveFrom.silent(basePath, name) || resolveFrom(cwd, name) const { default: cjsExport, ...esmNamedExports } = await import(`file://${file}`);
);
if (cjsExport) { if (cjsExport) {
return cjsExport; return cjsExport;

6837
package-lock.json generated

File diff suppressed because it is too large Load Diff