Commit 2848436
authored
fix: fix always-true conditional for
`[[ $var ]]` tests whether a string is non-empty. Since
`IS_MONOREPO_WITH_INDEPENDENT_VERSIONS` is always set to `"0"` or `"1"`,
the condition was always true — meaning the independent-versioning
tagging logic ran even for non-independent-versioning monorepos and
single-package repos. Changed to `-eq 1` to match the integer comparison
used earlier in the same script.
<!-- CURSOR_SUMMARY -->
---
> [!NOTE]
> **Low Risk**
> Single-line release-script conditional fix; reduces mistaken tag
pushes with no auth or data-handling changes.
>
> **Overview**
> Fixes the post-release branch that creates per-package git tags and
pushes them so it only runs when independent monorepo versioning is
actually enabled.
>
> The condition was `[[ $IS_MONOREPO_WITH_INDEPENDENT_VERSIONS ]]`,
which is true for any non-empty value—including `"0"`—so tagging could
run for single-package repos and monorepos without independent
versioning. It now uses `[[ $IS_MONOREPO_WITH_INDEPENDENT_VERSIONS -eq 1
]]`, matching the integer check used earlier in the same script for
`RELEASE_PACKAGES` validation.
>
> <sup>Reviewed by [Cursor Bugbot](https://cursor.com/bugbot) for commit
1e63025. Bugbot is set up for automated
code reviews on this repo. Configure
[here](https://www.cursor.com/dashboard/bugbot).</sup>
<!-- /CURSOR_SUMMARY -->IS_MONOREPO_WITH_INDEPENDENT_VERSIONS (#145)1 parent ee4765a commit 2848436
1 file changed
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
44 | 44 | | |
45 | 45 | | |
46 | 46 | | |
47 | | - | |
| 47 | + | |
48 | 48 | | |
49 | 49 | | |
50 | 50 | | |
| |||
0 commit comments