semantic-release 20.0.0-beta.1 → 20.0.0-beta.2

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.
@@ -37,7 +37,6 @@ execa('git', ['--version'])
37
37
  process.exit(1);
38
38
  });
39
39
 
40
- // Node 10+ from this point on
41
40
  cli()
42
41
  .then((exitCode) => {
43
42
  process.exitCode = exitCode;
package/index.js CHANGED
@@ -2,7 +2,7 @@ import {createRequire} from 'node:module';
2
2
  import {pick} from 'lodash-es';
3
3
  import * as marked from 'marked';
4
4
  import envCi from 'env-ci';
5
- import {hookStdout} from 'hook-std';
5
+ import {hookStd} from 'hook-std';
6
6
  import semver from 'semver';
7
7
  import AggregateError from 'aggregate-error';
8
8
  import hideSensitive from './lib/hide-sensitive.js';
@@ -36,8 +36,8 @@ async function terminalOutput(text) {
36
36
 
37
37
  /* eslint complexity: off */
38
38
  async function run(context, plugins) {
39
- const {cwd, env, options, logger} = context;
40
- const {isCi, branch, prBranch, isPr} = context.envCi;
39
+ const {cwd, env, options, logger, envCi} = context;
40
+ const {isCi, branch, prBranch, isPr} = envCi;
41
41
  const ciBranch = isPr ? prBranch : branch;
42
42
 
43
43
  if (!isCi && !options.dryRun && !options.noCi) {
@@ -251,7 +251,7 @@ async function callFail(context, plugins, err) {
251
251
  }
252
252
 
253
253
  export default async (cliOptions = {}, {cwd = process.cwd(), env = process.env, stdout, stderr} = {}) => {
254
- const {unhook} = hookStdout(
254
+ const {unhook} = hookStd(
255
255
  {silent: false, streams: [process.stdout, process.stderr, stdout, stderr].filter(Boolean)},
256
256
  hideSensitive(env)
257
257
  );
@@ -23,7 +23,7 @@ import {extractErrors} from '../utils.js';
23
23
  * @param {Function} [options.getNextInput=identity] Function called after each step is executed, with the last step input and the current current step result; the returned value will be used as the input of the next step.
24
24
  * @param {Function} [options.transform=identity] Function called after each step is executed, with the current step result, the step function and the last step input; the returned value will be saved in the pipeline results.
25
25
  *
26
- * @return {Pipeline} A Function that execute the `steps` sequencially
26
+ * @return {Pipeline} A Function that execute the `steps` sequentially
27
27
  */
28
28
  export default (steps, {settleAll = false, getNextInput = identity, transform = identity} = {}) => async (input) => {
29
29
  const results = [];
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": "20.0.0-beta.1",
4
+ "version": "20.0.0-beta.2",
5
5
  "type": "module",
6
6
  "author": "Stephan Bönnemann <stephan@boennemann.me> (http://boennemann.me)",
7
7
  "ava": {
@@ -75,6 +75,9 @@
75
75
  "testdouble": "3.16.6",
76
76
  "xo": "0.32.1"
77
77
  },
78
+ "overrides": {
79
+ "semantic-release": "20.0.0-beta.1"
80
+ },
78
81
  "engines": {
79
82
  "node": ">=16 || ^14.17"
80
83
  },