File tree Expand file tree Collapse file tree 2 files changed +11
-2
lines changed
Expand file tree Collapse file tree 2 files changed +11
-2
lines changed Original file line number Diff line number Diff line change 33TODO: v2 changes
44
55## [ Unreleased]
6+ ## [ 2.2.0] - 2021-04-30
7+
8+ - Fix: Bug with pre-release: false input getting ignored
69
710## [ 2.1.0] - 2021-04-30
811
Original file line number Diff line number Diff line change @@ -40,10 +40,16 @@ GEM_FILE="$1"
4040push_host=" $( parse-gemspec --push-host) "
4141GEM_HOST=" ${GEM_HOST:- $push_host } "
4242
43- if parse-gemspec --is-pre-release && [[ $PRE_RELEASE != true ]] ;
44- then
43+ if parse-gemspec --is-pre-release; then
44+ if [[ $PRE_RELEASE != true ]] ; then
4545 echo " Ignoring pre-release. To release, pass pre-release: true as an input"
4646 exit 0
47+ fi
48+ else # normal release
49+ if [[ $PRE_RELEASE == true ]]; then
50+ echo " Ignoring release. To release, pass pre-release: false as an input"
51+ exit 0
52+ fi
4753fi
4854
4955# Capture as we can't tell why gem push failed from the exit code and it logs
You can’t perform that action at this time.
0 commit comments