semantic-release 15.13.29 → 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.
@@ -91,3 +91,7 @@
91
91
  - [semantic-release-github-pages](https://github.com/qiwi/semantic-release-gh-pages-plugin)
92
92
  - `verifyConditions`: Verify the presence of the auth token set via environment variables.
93
93
  - `publish`: Pushes commit to the documentation branch.
94
+ - [leiningen-semantic-release](https://github.com/NoxHarmonium/leiningen-semantic-release)
95
+ - `verifyConditions`: Checks the project.clj is syntactically valid.
96
+ - `prepare`: Update the project.clj version and package the output jar file.
97
+ - `publish`: Publish the jar (and generated Maven metadata) to a maven repository (or clojars).
@@ -11,3 +11,11 @@
11
11
  - Publishes the same tarball to [npm](https://github.com/semantic-release/npm).
12
12
  - Commits the version change in `package.json`.
13
13
  - Creates or updates a [changelog](https://github.com/semantic-release/changelog) file.
14
+ - [semantic-release-npm-github-publish](https://github.com/oleg-koval/semantic-release-npm-github-publish)
15
+ - Based on [angular preset](https://github.com/conventional-changelog/conventional-changelog/tree/master/packages/conventional-changelog-angular).
16
+ - Adds more keywords for the `chore` **PATCH** release.
17
+ - Generates or updates a [changelog](https://github.com/semantic-release/changelog) file including all **PATCH** keywords (not included in default angular package).
18
+ - Updates GitHub release with release-notes.
19
+ - Bumps a version in package.json.
20
+ - Publishes the new version to [NPM](https://npmjs.org).
21
+
@@ -2,7 +2,9 @@
2
2
 
3
3
  ## Environment variables
4
4
 
5
- The [Authentication](../usage/ci-configuration.md#authentication) environment variables can be configured with [Secret variables](https://docs.gitlab.com/ce/ci/variables/README.html#secret-variables).
5
+ The [Authentication](../usage/ci-configuration.md#authentication) environment variables can be configured with [Protected variables](https://docs.gitlab.com/ce/ci/variables/README.html#protected-environment-variables).
6
+
7
+ **Note**: Make sure to configure your release branch as [protected](https://docs.gitlab.com/ce/user/project/protected_branches.html) in order for the CI/CD build to access the protected variables.
6
8
 
7
9
  ## Node project configuration
8
10
 
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.');
@@ -75,7 +75,7 @@ async function run(context, plugins) {
75
75
  throw error;
76
76
  }
77
77
  } catch (error) {
78
- logger.error(`The command "${error.cmd}" failed with the error message ${error.stderr}.`);
78
+ logger.error(`The command "${error.command}" failed with the error message ${error.stderr}.`);
79
79
  throw getError('EGITNOPERMISSION', {options});
80
80
  }
81
81
 
@@ -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 {
@@ -17,9 +17,11 @@ module.exports = async ({cwd, env, lastRelease: {gitHead}, logger}) => {
17
17
  }
18
18
 
19
19
  Object.assign(gitLogParser.fields, {hash: 'H', message: 'B', gitTags: 'd', committerDate: {key: 'ci', type: Date}});
20
- const commits = (await getStream.array(
21
- gitLogParser.parse({_: `${gitHead ? gitHead + '..' : ''}HEAD`}, {cwd, env: {...process.env, ...env}})
22
- )).map(commit => {
20
+ const commits = (
21
+ await getStream.array(
22
+ gitLogParser.parse({_: `${gitHead ? gitHead + '..' : ''}HEAD`}, {cwd, env: {...process.env, ...env}})
23
+ )
24
+ ).map(commit => {
23
25
  commit.message = commit.message.trim();
24
26
  commit.gitTags = commit.gitTags.trim();
25
27
  return commit;
package/lib/get-config.js CHANGED
@@ -1,6 +1,6 @@
1
1
  const {castArray, pickBy, isNil, isString, isPlainObject} = require('lodash');
2
2
  const readPkgUp = require('read-pkg-up');
3
- const cosmiconfig = require('cosmiconfig');
3
+ const {cosmiconfig} = require('cosmiconfig');
4
4
  const resolveFrom = require('resolve-from');
5
5
  const debug = require('debug')('semantic-release:config');
6
6
  const {repoUrl} = require('./git');
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.29",
4
+ "version": "15.14.0",
5
5
  "author": "Stephan Bönnemann <stephan@boennemann.me> (http://boennemann.me)",
6
6
  "ava": {
7
7
  "files": [
@@ -28,7 +28,7 @@
28
28
  "@semantic-release/npm": "^5.0.5",
29
29
  "@semantic-release/release-notes-generator": "^7.1.2",
30
30
  "aggregate-error": "^3.0.0",
31
- "cosmiconfig": "^5.0.1",
31
+ "cosmiconfig": "^6.0.0",
32
32
  "debug": "^4.0.0",
33
33
  "env-ci": "^4.0.0",
34
34
  "execa": "^3.2.0",
@@ -47,7 +47,7 @@
47
47
  "resolve-from": "^5.0.0",
48
48
  "semver": "^6.0.0",
49
49
  "signale": "^1.2.1",
50
- "yargs": "^14.0.0"
50
+ "yargs": "^15.0.1"
51
51
  },
52
52
  "devDependencies": {
53
53
  "ava": "^2.0.0",