macos just gotta be weird with sed
This commit is contained in:
parent
c114273b2f
commit
81ff59d5dd
1 changed files with 5 additions and 1 deletions
|
@ -17,7 +17,11 @@ fi
|
|||
echo "Version: $NEW_VERSION"
|
||||
echo "Current version: $CURRENT_VERSION"
|
||||
if [[ $COMMITSINCESTABLE -gt 0 ]]; then
|
||||
if [[ $RUNNER_OS == "macOS" ]]; then
|
||||
sed -i "" -e "s/$CURRENT_VERSION/$NEW_VERSION/" package.json
|
||||
else
|
||||
sed -i "0,/$CURRENT_VERSION/s//$NEW_VERSION/" package.json
|
||||
fi
|
||||
else
|
||||
echo "Version unchanged, commits since stable is ${COMMITSINCESTABLE}"
|
||||
fi
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue