semantic-release / semantic-release/exec

Why fail action is not executed if prepareCmd fails?

Open
#175 1 comment 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
JavaScript
Stars
164
Forks
28
PR merge metrics
No merged PRs in 30d

Description

If some error occurs for example at verifyConditions of @semantic-release/gitlab plugin, fail action executes and I receive a notification. But if script defined in prepareCmd fails, it doesn`t work.

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the failure with a script defined in prepareCmd, then compare it with the verifyConditions case involving @semantic-release/gitlab. Trace how the fail action is reached after each lifecycle step. Done means a prepareCmd failure also triggers the fail action and its notification behavior is covered by the project’s tests.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript, shell
Domain
cli, release
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.