Skip to content

fix(semantic-release): Check whether `$SEMANTIC_RELEASE_GITLAB_TOKEN` is set.

Florian Forster requested to merge fforster/semantic-release into main

What

fix(semantic-release): Check whether $SEMANTIC_RELEASE_GITLAB_TOKEN is set.

Why

The previous check, $SEMANTIC_RELEASE_GITLAB_TOKEN != "" appears to be interpreted as "not defined or not empty" (i.e. the inversion of "defined and empty"), which returns true if the variable is not defined. That is not the intention here.

Issue: #15

Merge request reports