Skip to content
This repository was archived by the owner on Feb 5, 2025. It is now read-only.

Commit ba0c71a

Browse files
committed
fix(build): added flag to skip publishing branch -- for use with latest semantic release prepare plugins
1 parent 73e1376 commit ba0c71a

File tree

1 file changed

+10
-2
lines changed

1 file changed

+10
-2
lines changed

scripts/semantic-release/_bump.sh

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -137,6 +137,9 @@ cat <<- EEOOFF
137137
p PatternFly
138138
v The version number (e.g., 3.15.0)
139139
140+
SPECIAL OPTIONS:
141+
s Skip publishing branch (for use with latest semantic release prepare plugins)
142+
140143
EEOOFF
141144
}
142145

@@ -155,13 +158,14 @@ verify()
155158
exit 1
156159
fi
157160

158-
while getopts hapv: c; do
161+
while getopts hapsv: c; do
159162
case $c in
160163
h) usage; exit 0;;
161164
a) PTNFLY_ANGULAR=1;
162165
SWITCH=-a;;
163166
p) PTNFLY=1;
164167
SWITCH=-p;;
168+
s) SKIP_PUBLISH_BRANCH=1;;
165169
v) VERSION=$OPTARG;;
166170
\?) usage; exit 1;;
167171
esac
@@ -171,6 +175,10 @@ verify()
171175
bump_bower
172176
bump_js
173177
verify
174-
publish_branch
178+
179+
if [ -z "$SKIP_PUBLISH_BRANCH" ]; then
180+
publish_branch
181+
fi
182+
175183
skip_npm_publish
176184
}

0 commit comments

Comments
 (0)