Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

the release fails when there is no commit #168

Open
its-dibo opened this issue Feb 19, 2025 · 0 comments
Open

the release fails when there is no commit #168

its-dibo opened this issue Feb 19, 2025 · 0 comments

Comments

@its-dibo
Copy link

its-dibo commented Feb 19, 2025

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/semantic-release-monorepo@8.0.2_semantic-release@24.2.1_typescript@5.6.3_/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/semantic-release-monorepo@8.0.2_semantic-release@24.2.1_typescript@5.6.3_/node_modules/semantic-release-monorepo/src/only-package-commits.js:26:13)
      at onlyPackageCommits (file:///home/runner/work/dibo/dibo/node_modules/.pnpm/semantic-release-monorepo@8.0.2_semantic-release@24.2.1_typescript@5.6.3_/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/semantic-release-monorepo@8.0.2_semantic-release@24.2.1_typescript@5.6.3_/node_modules/semantic-release-monorepo/src/options-transforms.js:8:58
      at async file:///home/runner/work/dibo/dibo/node_modules/.pnpm/semantic-release-monorepo@8.0.2_semantic-release@24.2.1_typescript@5.6.3_/node_modules/semantic-release-monorepo/src/lens-utils.js:7:17
      at async file:///home/runner/work/dibo/dibo/node_modules/.pnpm/semantic-release-monorepo@8.0.2_semantic-release@24.2.1_typescript@5.6.3_/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 its-dibo changed the title the release fails due to undefined commits the release fails when there is no commit Feb 19, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant