semantic-release 15.13.32 → 15.14.0

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.
Files changed (2) hide show
  1. package/index.js +8 -2
  2. package/package.json +1 -1
package/index.js CHANGED
@@ -23,7 +23,7 @@ marked.setOptions({renderer: new TerminalRenderer()});
23
23
 
24
24
  async function run(context, plugins) {
25
25
  const {cwd, env, options, logger} = context;
26
- const {isCi, branch: ciBranch, isPr} = envCi({env, cwd});
26
+ const {isCi, branch: ciBranch, isPr} = context.envCi;
27
27
 
28
28
  if (!isCi && !options.dryRun && !options.noCi) {
29
29
  logger.warn('This run was not triggered in a known CI environment, running in dry-run mode.');
@@ -160,7 +160,13 @@ module.exports = async (opts = {}, {cwd = process.cwd(), env = process.env, stdo
160
160
  {silent: false, streams: [process.stdout, process.stderr, stdout, stderr].filter(Boolean)},
161
161
  hideSensitive(env)
162
162
  );
163
- const context = {cwd, env, stdout: stdout || process.stdout, stderr: stderr || process.stderr};
163
+ const context = {
164
+ cwd,
165
+ env,
166
+ stdout: stdout || process.stdout,
167
+ stderr: stderr || process.stderr,
168
+ envCi: envCi({env, cwd}),
169
+ };
164
170
  context.logger = getLogger(context);
165
171
  context.logger.log(`Running ${pkg.name} version ${pkg.version}`);
166
172
  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": "15.13.32",
4
+ "version": "15.14.0",
5
5
  "author": "Stephan Bönnemann <stephan@boennemann.me> (http://boennemann.me)",
6
6
  "ava": {
7
7
  "files": [