Skip to content

Commit b163243

Browse files
committed
ci,ui: fix cluster-ui-release "check if published" step
The check for whether a version exists in npm is too liberal with its pattern matching, resulting in pre-release branches to cause other releases to fail to publish. Now, a pre-release version will not cause a potential failure in publish a regular version release. Epic: None Release note: None
1 parent 541b9d3 commit b163243

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.github/workflows/cluster-ui-release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ jobs:
5858
run: |
5959
PACKAGE_VERSION=$(cat ./package.json | jq -r ".version");
6060
VERSIONS=$(npm view @cockroachlabs/cluster-ui versions)
61-
if [[ $VERSIONS == *"$PACKAGE_VERSION"* ]]; then
61+
if [[ $VERSIONS == *\'"$PACKAGE_VERSION"\'* ]]; then
6262
echo "published=yes" >> $GITHUB_OUTPUT
6363
echo
6464
echo "🛑 Cluster UI package version $PACKAGE_VERSION is already published"

0 commit comments

Comments
 (0)