Skip to content
This repository was archived by the owner on Nov 3, 2024. It is now read-only.

Commit db4086b

Browse files
chore(ci): update version publish check + msg
1 parent 7f51f26 commit db4086b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.circleci/config.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,8 @@ jobs:
3737
- run:
3838
name: Check if branch is publishable
3939
command: |
40-
if [ "$CIRCLE_BRANCH" != "master" ]; then
41-
echo -e "\e[33m Branch does not publish -- exit!"
40+
if ! ([ $CIRCLE_BRANCH = "master" ] || [[ "$CIRCLE_BRANCH" =~ ^(([0-9]+|\.)+x)$ ]]); then
41+
echo -e "\e[33m Non-publishable branch; Stopping."
4242
circleci step halt
4343
fi
4444
- deploy:

0 commit comments

Comments
 (0)