Skip to content

Commit

Permalink
chore: do not try to change version in composer.json
Browse files Browse the repository at this point in the history
Ref: 7f56820
  • Loading branch information
williamdes committed Dec 19, 2021
1 parent b492531 commit 5a708dd
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions scripts/make-release.sh
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,6 @@ fi

echo "Change package versions"

jq --indent 4 --arg a "$version" '.version = $a' composer.json > "$tmp" && mv "$tmp" composer.json
jq --indent 4 --arg a "$version" '.version = $a' package.json > "$tmp" && mv "$tmp" package.json
if [ -f package-lock.json ]; then
jq --indent 4 --arg a "$version" '.version = $a' package-lock.json > "$tmp" && mv "$tmp" package-lock.json
Expand All @@ -104,7 +103,7 @@ git diff
read -r -p "Are you sure to commit the diff? [Y/n]" response
response=${response,,} # tolower
if [[ $response =~ ^(yes|y| ) ]] || [[ -z $response ]]; then
git add composer.json package.json
git add package.json
if [ -f package-lock.json ]; then
git add package-lock.json
fi
Expand Down

0 comments on commit 5a708dd

Please sign in to comment.