Skip to content

Commit 3a284be

Browse files
authored
Make release script not fail on no matches (#1339)
1 parent a687733 commit 3a284be

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@
9797
"release-it": {
9898
"hooks": {
9999
"before:git:bump": [
100-
"# check if version corresponds to changes in native files \n git diff --name-only ${latestVersion} HEAD | egrep \"(android/.*)|(ios/.*)\" -q && egrep '\\.0$' -q <<< ${version}"
100+
"# check if version corresponds to changes in native files \n if git diff --name-only ${latestVersion} HEAD | egrep \"(android/.*)|(ios/.*)\" -q; then egrep '\\.0$' -q <<< ${version}; else test $? -eq 1; fi"
101101
]
102102
}
103103
}

0 commit comments

Comments
 (0)