2023-12-24 20:36:56 +01:00
|
|
|
#!/bin/bash
|
|
|
|
|
|
|
|
# Specify the path to your package.json file
|
2024-02-21 21:50:11 +01:00
|
|
|
PACKAGE_JSON_PATH="./src/package.json"
|
2023-12-24 20:36:56 +01:00
|
|
|
|
|
|
|
# Check if the file exists
|
|
|
|
if [ ! -f "$PACKAGE_JSON_PATH" ]; then
|
|
|
|
echo "Error: package.json not found in the specified path."
|
|
|
|
exit 1
|
|
|
|
fi
|
|
|
|
|
|
|
|
# Read the version from package.json into a variable
|
|
|
|
VERSION=$(jq -r '.version' "$PACKAGE_JSON_PATH")
|
|
|
|
git push origin master develop $VERSION
|
|
|
|
git push --tags
|
|
|
|
(cd ../ether.github.com && git push)
|