semantic-release 17.1.0 → 17.1.1
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/index.js +2 -1
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -26,7 +26,8 @@ marked.setOptions({renderer: new TerminalRenderer()});
|
|
|
26
26
|
/* eslint complexity: off */
|
|
27
27
|
async function run(context, plugins) {
|
|
28
28
|
const {cwd, env, options, logger} = context;
|
|
29
|
-
const {isCi, branch
|
|
29
|
+
const {isCi, branch, prBranch, isPr} = context.envCi;
|
|
30
|
+
const ciBranch = isPr ? prBranch : branch;
|
|
30
31
|
|
|
31
32
|
if (!isCi && !options.dryRun && !options.noCi) {
|
|
32
33
|
logger.warn('This run was not triggered in a known CI environment, running in dry-run mode.');
|
package/package.json
CHANGED