semantic-release-monorepo icon indicating copy to clipboard operation
semantic-release-monorepo copied to clipboard

the release fails when there is no commit

Open its-dibo opened this issue 1 year ago • 0 comments

this line causes the release to be failed when there is no commit i.e. the arg commits is undefined.

it should be skipped or at maximum log a warning, so other packages can proceed

[9:46:08 AM] [semantic-release] › ℹ  Start step "fail" of plugin "[Function: semantic-release-monorepo]"
  file:///home/runner/work/dibo/dibo/node_modules/.pnpm/[email protected][email protected][email protected]_/node_modules/semantic-release-monorepo/src/only-package-commits.js:26
      commits.map(commit =>
              ^
  
  TypeError: Cannot read properties of undefined (reading 'map')
      at withFiles (file:///home/runner/work/dibo/dibo/node_modules/.pnpm/[email protected][email protected][email protected]_/node_modules/semantic-release-monorepo/src/only-package-commits.js:26:13)
      at onlyPackageCommits (file:///home/runner/work/dibo/dibo/node_modules/.pnpm/[email protected][email protected][email protected]_/node_modules/semantic-release-monorepo/src/only-package-commits.js:38:34)
      at process.processTicksAndRejections (node:internal/process/task_queues:105:5)
      at async file:///home/runner/work/dibo/dibo/node_modules/.pnpm/[email protected][email protected][email protected]_/node_modules/semantic-release-monorepo/src/options-transforms.js:8:58
      at async file:///home/runner/work/dibo/dibo/node_modules/.pnpm/[email protected][email protected][email protected]_/node_modules/semantic-release-monorepo/src/lens-utils.js:7:17
      at async file:///home/runner/work/dibo/dibo/node_modules/.pnpm/[email protected][email protected][email protected]_/node_modules/semantic-release-monorepo/src/only-package-commits.js:86:5 {
    pluginName: '[Function: semantic-release-monorepo]'
  }
  
  Node.js v22.13.1
   ELIFECYCLE  Command failed with exit code 1.

its-dibo avatar Feb 19 '25 09:02 its-dibo