Added version to composer.json
This fixes #1997 by adding the `version` key to the `composer.json` file. The version number will be updated with newer releases as well.
This commit is contained in:
parent
4847be1ab7
commit
a97b908a2a
@ -2,6 +2,7 @@
|
|||||||
"name":
|
"name":
|
||||||
"ivaynberg/select2",
|
"ivaynberg/select2",
|
||||||
"description": "Select2 is a jQuery based replacement for select boxes.",
|
"description": "Select2 is a jQuery based replacement for select boxes.",
|
||||||
|
"version": "3.4.5",
|
||||||
"type": "component",
|
"type": "component",
|
||||||
"homepage": "http://ivaynberg.github.io/select2/",
|
"homepage": "http://ivaynberg.github.io/select2/",
|
||||||
"license": "Apache-2.0",
|
"license": "Apache-2.0",
|
||||||
|
@ -28,19 +28,20 @@ git pull
|
|||||||
|
|
||||||
echo "Updating Version Identifiers"
|
echo "Updating Version Identifiers"
|
||||||
|
|
||||||
sed -E -e "s/\"version\": \"([0-9\.]+)\",/\"version\": \"$ver\",/g" -i "" bower.json select2.jquery.json component.json
|
sed -E -e "s/\"version\": \"([0-9\.]+)\",/\"version\": \"$ver\",/g" -i "" bower.json select2.jquery.json component.json composer.json
|
||||||
git add bower.json
|
git add bower.json
|
||||||
git add select2.jquery.json
|
git add select2.jquery.json
|
||||||
git add component.json
|
git add component.json
|
||||||
|
git add composer.json
|
||||||
git commit -m "modified version identifiers in descriptors for release $ver"
|
git commit -m "modified version identifiers in descriptors for release $ver"
|
||||||
git push
|
git push
|
||||||
|
|
||||||
git branch "$branch"
|
git branch "$branch"
|
||||||
git checkout "$branch"
|
git checkout "$branch"
|
||||||
|
|
||||||
echo "Tokenizing..."
|
echo "Tokenizing..."
|
||||||
|
|
||||||
find . -name "$js" | xargs -I{} sed -e "$tokens" -i "" {}
|
find . -name "$js" | xargs -I{} sed -e "$tokens" -i "" {}
|
||||||
find . -name "$css" | xargs -I{} sed -e "$tokens" -i "" {}
|
find . -name "$css" | xargs -I{} sed -e "$tokens" -i "" {}
|
||||||
sed -e "s/latest/$ver/g" -i "" bower.json
|
sed -e "s/latest/$ver/g" -i "" bower.json
|
||||||
|
|
||||||
@ -59,7 +60,7 @@ curl -s \
|
|||||||
>> "$mini"
|
>> "$mini"
|
||||||
|
|
||||||
git add "$mini"
|
git add "$mini"
|
||||||
|
|
||||||
git commit -m "release $ver"
|
git commit -m "release $ver"
|
||||||
|
|
||||||
echo "Tagging..."
|
echo "Tagging..."
|
||||||
|
Loading…
Reference in New Issue
Block a user