Skip to content

a Cannot read properties of null (reading 'matches' error when using multi-semantic-release #540

Description

@arvinxx

an error show when using multi-semantic-release

[multi-semantic-release]: Error: Command failed with exit code 1: npm version 2.2.7-beta.1 --userconfig /private/var/folders/3z/f7x4sr8n0qvfxw9jndvd6dj00000gn/T/30e5af0cadafdf31cb2c56c141c6a958/.npmrc --no-git-tag-version --allow-same-version
npm ERR! Cannot read properties of null (reading 'matches')

npm ERR! A complete log of this run can be found in:
npm ERR!     /Users/arvinxx/.npm/_logs/2022-12-23T15_25_27_760Z-debug-0.log
commitlint-config-gitmoji
v2.2.7-beta.1
    at makeError (/Users/arvinxx/CodeProjects/gitmoji-commit-workflow/node_modules/.pnpm/execa@5.1.1/node_modules/execa/lib/error.js:60:11)
    at handlePromise (/Users/arvinxx/CodeProjects/gitmoji-commit-workflow/node_modules/.pnpm/execa@5.1.1/node_modules/execa/index.js:118:26)
    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
    at async module.exports (/Users/arvinxx/CodeProjects/gitmoji-commit-workflow/node_modules/.pnpm/@semantic-release+npm@9.0.1_semantic-release@19.0.5/node_modules/@semantic-release/npm/lib/prepare.js:22:3)
    at async prepare (/Users/arvinxx/CodeProjects/gitmoji-commit-workflow/node_modules/.pnpm/@semantic-release+npm@9.0.1_semantic-release@19.0.5/node_modules/@semantic-release/npm/index.js:68:3)
    at async validator (/Users/arvinxx/CodeProjects/gitmoji-commit-workflow/node_modules/.pnpm/semantic-release@19.0.5/node_modules/semantic-release/lib/plugins/normalize.js:34:24)
    at async /Users/arvinxx/CodeProjects/gitmoji-commit-workflow/node_modules/.pnpm/semantic-release@19.0.5/node_modules/semantic-release/lib/plugins/pipeline.js:37:34
    at async Promise.all (index 0)
    at async next (/Users/arvinxx/CodeProjects/gitmoji-commit-workflow/node_modules/.pnpm/p-reduce@2.1.0/node_modules/p-reduce/index.js:16:18) {
  shortMessage: 'Command failed with exit code 1: npm version 2.2.7-beta.1 --userconfig /private/var/folders/3z/f7x4sr8n0qvfxw9jndvd6dj00000gn/T/30e5af0cadafdf31cb2c56c141c6a958/.npmrc --no-git-tag-version --allow-same-version',
  command: 'npm version 2.2.7-beta.1 --userconfig /private/var/folders/3z/f7x4sr8n0qvfxw9jndvd6dj00000gn/T/30e5af0cadafdf31cb2c56c141c6a958/.npmrc --no-git-tag-version --allow-same-version',
  escapedCommand: 'npm version 2.2.7-beta.1 --userconfig "/private/var/folders/3z/f7x4sr8n0qvfxw9jndvd6dj00000gn/T/30e5af0cadafdf31cb2c56c141c6a958/.npmrc" --no-git-tag-version --allow-same-version',
  exitCode: 1,
  signal: undefined,
  signalDescription: undefined,
  stdout: 'commitlint-config-gitmoji\nv2.2.7-beta.1',
  stderr: "npm ERR! Cannot read properties of null (reading 'matches')\n" +
    '\n' +
    'npm ERR! A complete log of this run can be found in:\n' +
    'npm ERR!     /Users/arvinxx/.npm/_logs/2022-12-23T15_25_27_760Z-debug-0.log',
  failed: true,
  timedOut: false,
  isCanceled: false,
  killed: false,
  pluginName: 'Inline plugin'
}
 ELIFECYCLE  Command failed with exit code 1.

Here is the github ci https://github.com/arvinxx/gitmoji-commit-workflow/actions/runs/3766353786/jobs/6402794169#step:7:176

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions