Skip to content

Commit d86680d

Browse files
committed
Added functionality to skip clean and install steps -- not valid with publish switch.
1 parent 64c373a commit d86680d

File tree

1 file changed

+13
-7
lines changed

1 file changed

+13
-7
lines changed

scripts/release.sh

Lines changed: 13 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -172,7 +172,7 @@ cat <<- EEOOFF
172172
h Display this message (default)
173173
f Force push to new repo branch (e.g., bump-v3.7.0)
174174
p Publish to npm from latest repo clone
175-
s Skip repo setup (e.g., to rebuild previously created repo)
175+
s Skip new clone, clean, and install to rebuild previously created repo -- not valid with -p
176176
v The version number (e.g., 3.7.0) -- not valid with -p
177177
178178
EEOOFF
@@ -222,19 +222,25 @@ verify()
222222

223223
prereqs
224224

225-
if [ -z "$SETUP" ]; then
226-
setup_repo
227-
fi
228-
229225
if [ -z "$PUBLISH" ]; then
226+
if [ -z "$SETUP" ]; then
227+
setup_repo
228+
fi
229+
230230
bump_bower
231231
bump_package
232-
clean
233-
install
232+
233+
if [ -z "$SETUP" ]; then
234+
clean
235+
install
236+
fi
237+
234238
build
235239
shrinkwrap
236240
verify
237241
else
242+
# Publish from the latest repo clone -- don't skip setup or clean.
243+
setup_repo
238244
clean
239245
install
240246
build

0 commit comments

Comments
 (0)